Class: GRX::NN::Tanh

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

Instance Method Summary collapse

Methods inherited from Module

#call, #parameters, #zero_grad

Instance Method Details

#forward(x) ⇒ Object



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

def forward(x) = x.tanh

#to_sObject



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

def to_s = "Tanh()"