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

Function test_tensor_size

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

Source from the content-addressed store, hash-verified

178
179
180def test_tensor_size():
181 data = np.random.randn(10, 4)
182 tensor = pa.Tensor.from_numpy(data)
183 assert pa.ipc.get_tensor_size(tensor) > (data.size * 8)
184
185
186def test_read_tensor(tmpdir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected