MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / test_circular_naive

Function test_circular_naive

Scripts/UnitTest/test_circular_buffer.py:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7@pytest.mark.local
8def test_circular_naive():
9 buf = TensorQueue(torch.Size((3, 1)), grow_dim=0, device=torch.device('cpu'), dtype=torch.float32)
10 x = torch.tensor([[1.]])
11 buf.push(x)
12 assert (buf.tensor == torch.tensor([[1.]])).all()
13
14
15@pytest.mark.local

Callers

nothing calls this directly

Calls 3

pushMethod · 0.95
TensorQueueClass · 0.90
tensorMethod · 0.45

Tested by

no test coverage detected