MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_list_tuple

Method test_list_tuple

tests/transforms/test_to_cupy.py:102–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 cp.testing.assert_allclose(result, test_data)
101
102 def test_list_tuple(self):
103 test_data = [[1, 2], [3, 4]]
104 result = ToCupy(wrap_sequence=True)(test_data)
105 cp.testing.assert_allclose(result, cp.asarray(test_data))
106 test_data = ((1, 2), (3, 4))
107 result = ToCupy(wrap_sequence=True)(test_data)
108 cp.testing.assert_allclose(result, cp.asarray(test_data))
109
110
111if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

ToCupyClass · 0.90

Tested by

no test coverage detected