MCPcopy 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
7def test_empty_tensor_create() -> bool:
8 a = torch.empty([1024], torch.float32, "cpu")
9 return a.shape() == [1024]
10
11
12def test_is_torch_available() -> bool:

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected