pyarrow.ipc.read_tensor#

pyarrow.ipc.read_tensor(source)#

Read pyarrow.Tensor from pyarrow.NativeFile object from current position. If the file source supports zero copy (e.g. a memory map), then this operation does not allocate any memory. This function not assume that the stream is aligned

Parameters
sourcepyarrow.NativeFile
Returns
tensorTensor