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

Function test_tensor_hashing

python/pyarrow/tests/test_tensor.py:174–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172
173
174def test_tensor_hashing():
175 # Tensors are unhashable
176 with pytest.raises(TypeError, match="unhashable"):
177 hash(pa.Tensor.from_numpy(np.arange(10)))
178
179
180def test_tensor_size():

Callers

nothing calls this directly

Calls 1

hashFunction · 0.85

Tested by

no test coverage detected