Skip to content
Snippets Groups Projects
Unverified Commit 0d010ead authored by Ziqi Zhou's avatar Ziqi Zhou Committed by GitHub
Browse files

Fix tensor getitem bug (#5474)


* printf tensor index in cpp

* revert printf debug information

* add isinstance tuple and int condition

* format code

* implement and register __iter__ method

* Change to catch exception from C++ and throw IndexError

* add indexError error message

Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 11126849
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment