Module: Tensorflow::Operators
- Included in:
- Eager::TensorHandle, Graph::Operation, Tensor, Variable
- Defined in:
- lib/tensorflow/ops/operators.rb
Instance Method Summary collapse
- #%(other) ⇒ Object
- #*(other) ⇒ Object
- #**(other) ⇒ Object
- #+(other) ⇒ Object
- #-(other) ⇒ Object
- #-@ ⇒ Object
- #/(other) ⇒ Object
Instance Method Details
#%(other) ⇒ Object
23 24 25 |
# File 'lib/tensorflow/ops/operators.rb', line 23 def %(other) Math.floormod(self, other, dtype: self.dtype) end |
#*(other) ⇒ Object
11 12 13 |
# File 'lib/tensorflow/ops/operators.rb', line 11 def *(other) Math.multiply(self, other, dtype: self.dtype) end |
#**(other) ⇒ Object
15 16 17 |
# File 'lib/tensorflow/ops/operators.rb', line 15 def **(other) Math.pow(self, other, dtype: self.dtype) end |
#+(other) ⇒ Object
3 4 5 |
# File 'lib/tensorflow/ops/operators.rb', line 3 def +(other) Math.add(self, other, dtype: self.dtype) end |
#-(other) ⇒ Object
7 8 9 |
# File 'lib/tensorflow/ops/operators.rb', line 7 def -(other) Math.subtract(self, other, dtype: self.dtype) end |