mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
add serializing numpy boolean (#529)
This commit is contained in:
committed by
Robert Nishihara
parent
f32368bcbe
commit
0681107039
@@ -32,6 +32,7 @@ Status SerializeArray(PyArrayObject* array, SequenceBuilder& builder,
|
||||
std::vector<PyObject*>& subdicts, std::vector<PyObject*>& tensors_out) {
|
||||
int dtype = PyArray_TYPE(array);
|
||||
switch (dtype) {
|
||||
case NPY_BOOL:
|
||||
case NPY_UINT8:
|
||||
case NPY_INT8:
|
||||
case NPY_UINT16:
|
||||
|
||||
Reference in New Issue
Block a user