mirror of https://github.com/Jittor/Jittor
polish ring_buffer
This commit is contained in:
parent
7ebf3e8ee4
commit
6adf313681
|
@ -172,7 +172,7 @@ static PyObject* pop_py_object(RingBuffer* rb, uint64& __restrict__ offset, bool
|
|||
for (int64 i=0; i<size; i++) {
|
||||
PyObjHolder key(pop_py_object(rb, offset, keep_numpy_array));
|
||||
PyObjHolder value(pop_py_object(rb, offset, keep_numpy_array));
|
||||
PyDict_SetItem(dict.obj, key, value);
|
||||
PyDict_SetItem(dict.obj, key.obj, value.obj);
|
||||
}
|
||||
return dict.release();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue