Module: Tensorflow::Operators

Included in:
Eager::TensorHandle, Graph::Operation, Tensor, Variable
Defined in:
lib/tensorflow/ops/operators.rb

Instance Method Summary collapse

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

#-@Object



27
28
29
# File 'lib/tensorflow/ops/operators.rb', line 27

def -@
  Math.negative(self)
end

#/(other) ⇒ Object



19
20
21
# File 'lib/tensorflow/ops/operators.rb', line 19

def /(other)
  Math.divide(self, other, dtype: self.dtype)
end