pyarrow.ipc.read_tensor#

pyarrow.ipc.read_tensor(source)#

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

Parameters:
sourcepyarrow.NativeFile
Returns:
tensorTensor