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

NameError: name 'token' is not defined #3

Open
jiandai opened this issue Jan 25, 2018 · 1 comment
Open

NameError: name 'token' is not defined #3

jiandai opened this issue Jan 25, 2018 · 1 comment

Comments

@jiandai
Copy link

jiandai commented Jan 25, 2018

In python3, line result.extend(_pad_zeros(range(begin, end+1), len(token))) in tensorflow_on_slurm.py gives raise to a NameError 'cause "token" lives only the scope of [int(token) for token in id.split('-')].

@weiliu620
Copy link

weiliu620 commented Jul 19, 2018

replace the line with

result.extend(_pad_zeros(range(begin, end+1), len( id.split('-')[0] )))

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

No branches or pull requests

2 participants