MCPcopy Index your code
hub / github.com/ray-project/ray / test_numpy_serialization

Function test_numpy_serialization

python/ray/tests/test_serialization.py:292–299  ·  view source on GitHub ↗
(ray_start_regular)

Source from the content-addressed store, hash-verified

290
291
292def test_numpy_serialization(ray_start_regular):
293 array = np.zeros(314)
294 from ray.cloudpickle import dumps
295
296 buffers = []
297 inband = dumps(array, protocol=5, buffer_callback=buffers.append)
298 assert len(inband) < array.nbytes
299 assert len(buffers) == 1
300
301
302def test_numpy_subclass_serialization_pickle(ray_start_regular):

Callers

nothing calls this directly

Calls 1

dumpsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…