MCPcopy Create free account
hub / github.com/apache/singa / __mul__

Method __mul__

examples/model_selection/Trails/singa_pkg_code/tensor.py:654–658  ·  view source on GitHub ↗
(self, rhs)

Source from the content-addressed store, hash-verified

652 return _call_singa_func(singa.SubFloat, self.data, rhs)
653
654 def __mul__(self, rhs):
655 if isinstance(rhs, Tensor):
656 return from_raw_tensor(singa.__mul__(self.data, rhs.data))
657 else:
658 return _call_singa_func(singa.MultFloat, self.data, rhs)
659
660 def __div__(self, rhs):
661 if isinstance(rhs, Tensor):

Callers

nothing calls this directly

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected