Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
789
def
from_raw_tensor(t):
790
x = Tensor(t.shape(), t.device(), t.data_type())
791
x.data = t
792
return
x
793
794
795
def
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_tensors
Function · 0.70
Calls
4
shape
Method · 0.80
device
Method · 0.80
data_type
Method · 0.80
Tensor
Class · 0.70
Tested by
no test coverage detected