add serializing numpy boolean (#529)

This commit is contained in:
Philipp Moritz
2017-05-08 22:24:02 -07:00
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: