mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 00:29:38 +08:00
libraylib -> lib (#311)
This commit is contained in:
committed by
Robert Nishihara
parent
c3695099fc
commit
4c323d4ecf
@@ -339,7 +339,7 @@ class Worker(object):
|
||||
"""
|
||||
if ray.lib.is_arrow(self.handle, objref):
|
||||
## this is the new codepath
|
||||
buff, segmentid, metadata_offset = ray.libraylib.get_buffer(self.handle, objref)
|
||||
buff, segmentid, metadata_offset = ray.lib.get_buffer(self.handle, objref)
|
||||
metadata_size = np.frombuffer(buff, dtype="int64", count=1)[0]
|
||||
metadata = np.frombuffer(buff, dtype="byte", offset=8, count=metadata_size)
|
||||
data = np.frombuffer(buff, dtype="byte")[8 + metadata_size:]
|
||||
|
||||
Reference in New Issue
Block a user