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

Function from_raw_tensor

python/singa/tensor.py:789–792  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

787
788
789def from_raw_tensor(t):
790 x = Tensor(t.shape(), t.device(), t.data_type())
791 x.data = t
792 return x
793
794
795def from_raw_tensors(tt):

Callers 10

__add__Method · 0.70
__sub__Method · 0.70
__mul__Method · 0.70
__div__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