Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test function has a undefined/unused variable #5

Open
violetguos opened this issue Oct 28, 2019 · 2 comments
Open

test function has a undefined/unused variable #5

violetguos opened this issue Oct 28, 2019 · 2 comments

Comments

@violetguos
Copy link

Hi,

While attempting to run test(), I noticed that

the log variable is undefined in solver.py

log += ", {}: {:.4f}".format(tag, value)

this log variable in line 392 referenced above is never printed or saved to a log_dir.

@yongqyu
Copy link
Owner

yongqyu commented Nov 11, 2019

sorry for late answer.
And thank you for your point. The code for this part is wrong.
I can't fix it right away, so I'll leave this issue unclosed.

Thank you for your interest in my code.

@Wenjian-Ma
Copy link

Hi,

While attempting to run test(), I noticed that

the log variable is undefined in solver.py

log += ", {}: {:.4f}".format(tag, value)

this log variable in line 392 referenced above is never printed or saved to a log_dir.

Just delete "+",then print(log), like this:
log = ", {}: {:.4f}".format(tag, value)
print(log)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants