MCPcopy Create free account
hub / github.com/apache/arrow / check_tensors

Function check_tensors

python/pyarrow/tests/test_table.py:1008–1013  ·  view source on GitHub ↗
(tensor, expected_tensor, type, size)

Source from the content-addressed store, hash-verified

1006
1007
1008def check_tensors(tensor, expected_tensor, type, size):
1009 assert tensor.equals(expected_tensor)
1010 assert tensor.size == size
1011 assert tensor.type == type
1012 assert tensor.shape == expected_tensor.shape
1013 assert tensor.strides == expected_tensor.strides
1014
1015
1016@pytest.mark.numpy

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected