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
force
print()
There's calling print() with passing force=True (at losses.py, L222). However, built-in print() function can't accept this parameter:
force=True
>>> print("something", force=True) Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2022.3.2\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() ^^^^^^ File "<input>", line 1, in <module> TypeError: 'force' is an invalid keyword argument for print()
I believe the author implied that parameter to flush stdout stream, so there should have been flush=True:
flush=True
>>> print("something", flush=True) something
The text was updated successfully, but these errors were encountered:
fix: 'flush' arg when calling 'print()' (naver#24)
f920c20
* (fix): use 'flush=True' instead of 'force=True' when calling 'print()' functions in losses.py
Hi, during training, the built-in print method gets replaced with the one from https://github.com/naver/croco/blob/743ee71a2a9bf57cea6832a9064a70a0597fcfcb/utils/misc.py#L182
Sorry, something went wrong.
@yocabon ahh, thank you. Sorry, I haven't seen your reply and uploaded the PR. Will close it now.
Successfully merging a pull request may close this issue.
There's calling
print()
with passingforce=True
(at losses.py, L222).However, built-in
print()
function can't accept this parameter:I believe the author implied that parameter to flush stdout stream, so there should have been
flush=True
:The text was updated successfully, but these errors were encountered: