Class: RubyZero::Core::Functions::Mul
- Defined in:
- lib/rubyzero/core/functions/operators.rb
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
Methods inherited from Function
#call, #initialize, #inspect, plot
Constructor Details
This class inherits a constructor from RubyZero::Core::Functions::Function
Instance Method Details
#backward(dy) ⇒ Object
41 42 43 44 |
# File 'lib/rubyzero/core/functions/operators.rb', line 41 def backward(dy) x1, x2 = @inputs return dy * x2, dy * x1 end |