mirror of https://github.com/Jittor/Jittor
update
This commit is contained in:
parent
aea2fdfe9e
commit
bde5be81d0
|
@ -114,7 +114,7 @@ static void push_py_object(RingBuffer* rb, PyObject* obj, uint64& __restrict__ o
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
long dims[args.shape.size()];
|
long dims[args.shape.size()];
|
||||||
#endif
|
#endif
|
||||||
for (int i = 0; i < args.shape.size(); i++)
|
for (int i=0; i<args.shape.size(); i++)
|
||||||
dims[i] = args.shape[i];
|
dims[i] = args.shape[i];
|
||||||
PyObjHolder oh(PyArray_New(
|
PyObjHolder oh(PyArray_New(
|
||||||
PyArray_Type, // subtype
|
PyArray_Type, // subtype
|
||||||
|
|
Loading…
Reference in New Issue