Class: DNN::Layers::Exp
- Includes:
- LayerNode
- Defined in:
- lib/dnn/core/layers/math_layers.rb
Instance Attribute Summary
Attributes inherited from Layer
Instance Method Summary collapse
Methods included from LayerNode
Methods inherited from Layer
#build, #built?, call, #call, #clean, #forward, from_hash, #initialize, #load_hash, #output_shape, #to_hash
Constructor Details
This class inherits a constructor from DNN::Layers::Layer
Instance Method Details
#backward_node(dy) ⇒ Object
67 68 69 |
# File 'lib/dnn/core/layers/math_layers.rb', line 67 def backward_node(dy) dy * Xumo::NMath.exp(@x) end |
#forward_node(x) ⇒ Object
62 63 64 65 |
# File 'lib/dnn/core/layers/math_layers.rb', line 62 def forward_node(x) @x = x Xumo::NMath.exp(x) end |