Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
758
def
from_raw_tensor(t):
759
x = Tensor(t.shape(), t.device(), t.data_type())
760
x.data = t
761
return
x
762
763
764
def
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_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