Skip to content

Conversation

@sljlp
Copy link
Contributor

@sljlp sljlp commented Aug 31, 2021

  • fix index tensor leak in setitem

  • fix another usage of PyTuple_Pack

  • refine code

  • refine code

  • handle None index

  • add Py_DecRef

  • revert ut

  • refine code

  • merge develop

  • use RAII

  • follow comments

PR types

Bug fixes

PR changes

Others

Describe

fix potential tensor leak in tensor.setitem.
cherry-pick #35013

* fix index tensor leak in __setitem__

* fix another usage of PyTuple_Pack

* refine code

* refine code

* handle None index

* add Py_DecRef

* revert ut

* refine code

* merge develop

* use RAII

* follow comments
@sljlp sljlp closed this Aug 31, 2021
@paddle-bot-old
Copy link

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@sljlp sljlp deleted the fix_leak branch September 5, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants