Skip to content

Access model weights during training #13966

Discussion options

You must be logged in to vote

And I should see a bunch of ones.

you should see or you did see. I think the parameters saved in the dict are references to the same object hence you can't see any difference there.

pl_module.parameters()

also, this is a generator.

you can deepcopy the state_dict instead to verify it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vokcow
Comment options

@rohitgr7
Comment options

Answer selected by rohitgr7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment