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



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

def forward(x) = x.tanh

#to_sObject



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

def to_s = "Tanh()"