mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 12:22:59 +08:00
[Serialization] Update CloudPickle to 1.6.0 (#9694)
* update cloudpickle to 1.6.0 * fix CI timeout
This commit is contained in:
committed by
GitHub
parent
e9b046306a
commit
f0c3910d59
@@ -1,6 +1,5 @@
|
||||
from libc.string cimport memcpy
|
||||
from libc.stdint cimport uintptr_t, uint64_t, INT32_MAX
|
||||
from libcpp cimport nullptr
|
||||
import cython
|
||||
|
||||
DEF MEMCOPY_THREADS = 6
|
||||
@@ -116,6 +115,9 @@ cdef class SubBuffer:
|
||||
<const char*> self.buf, self.len)
|
||||
|
||||
def __getbuffer__(self, Py_buffer* buffer, int flags):
|
||||
if flags & cpython.PyBUF_WRITABLE:
|
||||
# Ray ensures all buffers are immutable.
|
||||
raise BufferError
|
||||
buffer.readonly = self.readonly
|
||||
buffer.buf = self.buf
|
||||
buffer.format = <char *>self._format.c_str()
|
||||
|
||||
Reference in New Issue
Block a user