This commit is contained in:
lzhengning 2021-06-17 22:16:41 +08:00
parent aea2fdfe9e
commit bde5be81d0
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ static void push_py_object(RingBuffer* rb, PyObject* obj, uint64& __restrict__ o
#elif defined(__APPLE__)
long dims[args.shape.size()];
#endif
for (int i = 0; i < args.shape.size(); i++)
for (int i=0; i<args.shape.size(); i++)
dims[i] = args.shape[i];
PyObjHolder oh(PyArray_New(
PyArray_Type, // subtype