Skip to content
New issue

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

Explicitly cast range function to list or tuple for Python 3 compatibility. #4408

Closed
wants to merge 1 commit into from
Closed

Explicitly cast range function to list or tuple for Python 3 compatibility. #4408

wants to merge 1 commit into from

Conversation

peterroelants
Copy link

@peterroelants peterroelants commented May 30, 2018

Explicitly cast range function to list or tuple when the result is not used as an iterator. This makes the code Python 3 compatible.

This fixes an issue that I had running the Pet detector example with Python 3 and tensorflow 1.8. I tested the Pet detector example with tensorflow 1.8 and Python 3.6 locally and Python 3.5 on GC. This PR fixes the issues that I had.

Similar issue as #3465. Also related to the fixes suggested in #3705 and #3752.

…t used as an iterator. This makes the code Python 3 compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants