MCPcopy
hub / github.com/ray-project/ray / from_bytes

Method from_bytes

python/ray/data/_internal/arrow_block.py:253–255  ·  view source on GitHub ↗
(cls, data: bytes)

Source from the content-addressed store, hash-verified

251
252 @classmethod
253 def from_bytes(cls, data: bytes) -> "ArrowBlockAccessor":
254 reader = pyarrow.ipc.open_stream(data)
255 return cls(reader.read_all())
256
257 @staticmethod
258 def _build_tensor_row(row: ArrowRow, row_idx: int, col_name: str) -> np.ndarray:

Callers 10

for_blockMethod · 0.45
key_to_bucketMethod · 0.45
_compute_row_hashesFunction · 0.45
_align_bit_offsetFunction · 0.45
_deserialize_objectMethod · 0.45

Calls 1

clsClass · 0.85