class Float
Public Instance Methods
*(other)
click to toggle source
# File lib/dnn/core/monkey_patch.rb, line 59 def *(other) if other.is_a?(DNN::Tensor) || other.is_a?(DNN::Param) DNN::Layers::Mul.(DNN::Tensor.convert(self), other) else dnn__mul(other) end end
Also aliased as: dnn__mul
+(other)
click to toggle source
# File lib/dnn/core/monkey_patch.rb, line 41 def +(other) if other.is_a?(DNN::Tensor) || other.is_a?(DNN::Param) DNN::Layers::Add.(DNN::Tensor.convert(self), other) else dnn__add(other) end end
Also aliased as: dnn__add
-(other)
click to toggle source
# File lib/dnn/core/monkey_patch.rb, line 50 def -(other) if other.is_a?(DNN::Tensor) || other.is_a?(DNN::Param) DNN::Layers::Sub.(DNN::Tensor.convert(self), other) else dnn__sub(other) end end
Also aliased as: dnn__sub
/(other)
click to toggle source
# File lib/dnn/core/monkey_patch.rb, line 68 def /(other) if other.is_a?(DNN::Tensor) || other.is_a?(DNN::Param) DNN::Layers::Div.(DNN::Tensor.convert(self), other) else dnn__div(other) end end
Also aliased as: dnn__div