We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I would like to add for loop support in https://github.com/huggingface/transformers/blame/c2393cad085e3875ee2206d917d46d15e50602a3/src/transformers/tools/python_interpreter.py Any idea about how to implement this?
For loop is quite common in generated code. Usually it will not cause infinite loop.
An additional 'elif' for 'ast.For' before the 'else' will be nice: https://github.com/huggingface/transformers/blame/c2393cad085e3875ee2206d917d46d15e50602a3/src/transformers/tools/python_interpreter.py#L132
The text was updated successfully, but these errors were encountered:
cc @sgugger
Sorry, something went wrong.
Would you like to open a PR for this?
I would like to, but I don't know how to implement it yet. Do you have any suggestions?
Should be added with the PR mentioned above :-)
Successfully merging a pull request may close this issue.
Feature request
Hello, I would like to add for loop support in https://github.com/huggingface/transformers/blame/c2393cad085e3875ee2206d917d46d15e50602a3/src/transformers/tools/python_interpreter.py
Any idea about how to implement this?
Motivation
For loop is quite common in generated code. Usually it will not cause infinite loop.
Your contribution
An additional 'elif' for 'ast.For' before the 'else' will be nice: https://github.com/huggingface/transformers/blame/c2393cad085e3875ee2206d917d46d15e50602a3/src/transformers/tools/python_interpreter.py#L132
The text was updated successfully, but these errors were encountered: