Class: GRX::NN::Tanh

Inherits:
Module show all
Defined in:
lib/grx/nn.rb

Instance Method Summary collapse

Methods inherited from Module

#call, #load_weights, #parameters, #save_weights, #zero_grad

Instance Method Details

#forward(x) ⇒ Object



160
# File 'lib/grx/nn.rb', line 160

def forward(x) = x.tanh

#to_sObject



161
# File 'lib/grx/nn.rb', line 161

def to_s = "Tanh()"