Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UbiquitousLearning/mllm
/ test_empty_tensor_create
Function
test_empty_tensor_create
pymllm/tests/test_tensor.py:7–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
6
7
def
test_empty_tensor_create() -> bool:
8
a = torch.empty([1024], torch.float32,
"cpu"
)
9
return
a.shape() == [1024]
10
11
12
def
test_is_torch_available() -> bool:
Callers
nothing calls this directly
Calls
2
empty
Method · 0.45
shape
Method · 0.45
Tested by
no test coverage detected