Skip to content

Conversation

NeoLegends
Copy link
Member

@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 a team and albertz as code owners July 5, 2024 12:20
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