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

Torch: print model at log verbosity 3 #1576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NeoLegends
Copy link
Collaborator

@NeoLegends NeoLegends commented Jul 5, 2024

Closes #1575

This probably didn't need a PR but I'm unsure if there was a good reason for v4 verbosity or not. Feel free to immediately merge if there wasn't.

@NeoLegends NeoLegends self-assigned this Jul 5, 2024
@NeoLegends NeoLegends requested review from albertz and a team as code owners July 5, 2024 12:20
@@ -862,7 +862,7 @@ def _create_model(self, *, epoch: int, step: int):
else:
raise TypeError(f"get_model returned {model} of type {type(model)}, expected rf.Module or torch.nn.Module")
assert isinstance(self._pt_model, torch.nn.Module)
print("Model:", self._pt_model, file=log.v4)
print("Model:", self._pt_model, file=log.v3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print("Model:", self._pt_model, file=log.v3)
print("Model:", self._pt_model, file=log.v5)

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

Successfully merging this pull request may close these issues.

Torch: print model at log verbosity 3
2 participants