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

Function from_raw_tensor

examples/model_selection/Trails/singa_pkg_code/tensor.py:758–761  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

756
757
758def from_raw_tensor(t):
759 x = Tensor(t.shape(), t.device(), t.data_type())
760 x.data = t
761 return x
762
763
764def from_raw_tensors(tt):

Callers 12

__add__Method · 0.70
__sub__Method · 0.70
__mul__Method · 0.70
__div__Method · 0.70
__truediv__Method · 0.70
__floordiv__Method · 0.70
__lt__Method · 0.70
__le__Method · 0.70
__gt__Method · 0.70
__ge__Method · 0.70
__eq__Method · 0.70
from_raw_tensorsFunction · 0.70

Calls 4

shapeMethod · 0.80
deviceMethod · 0.80
data_typeMethod · 0.80
TensorClass · 0.70

Tested by

no test coverage detected