File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ static void ParseIndexingSlice(
428
428
429
429
// NOTE(zhiqiu): PyTuple_Pack increases refcount.
430
430
PyObject *index = !PyTuple_Check (_index) ? PyTuple_Pack (1 , _index) : _index;
431
- DEFINE_PADDLE_SCOPE_GUARD ([& index , & _index]() {
431
+ DEFINE_PADDLE_SCOPE_GUARD ([index , _index]() {
432
432
if (!PyTuple_Check (_index)) {
433
433
Py_DECREF (index );
434
434
VLOG (4 ) << " Call Py_DECREF" ;
@@ -827,7 +827,7 @@ void BindImperative(py::module *m_ptr) {
827
827
PyObject *index_ptr = !PyTuple_Check (_index.ptr ())
828
828
? PyTuple_Pack (1 , _index.ptr ())
829
829
: _index.ptr ();
830
- DEFINE_PADDLE_SCOPE_GUARD ([& index_ptr, &_index]() {
830
+ DEFINE_PADDLE_SCOPE_GUARD ([index_ptr, &_index]() {
831
831
if (!PyTuple_Check (_index.ptr ())) {
832
832
Py_DECREF (index_ptr);
833
833
VLOG (4 ) << " Call Py_DECREF" ;
You can’t perform that action at this time.
0 commit comments