mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 21:05:07 +08:00
Serialize numpy arrays with custom objects
This commit is contained in:
@@ -109,7 +109,7 @@ Status append(PyObject* elem, SequenceBuilder& builder,
|
||||
} else if (PyArray_IsScalar(elem, Generic)) {
|
||||
RETURN_NOT_OK(AppendScalar(elem, builder));
|
||||
} else if (PyArray_Check(elem)) {
|
||||
RETURN_NOT_OK(SerializeArray((PyArrayObject*) elem, builder));
|
||||
RETURN_NOT_OK(SerializeArray((PyArrayObject*) elem, builder, subdicts));
|
||||
} else if (elem == Py_None) {
|
||||
RETURN_NOT_OK(builder.AppendNone());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user