Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

model in ddp #5238

Answered by epwalsh
valiantljk asked this question in Q&A
Jun 2, 2021 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Yes, they share the same parameters since the _pytorch_model is just a thin wrapper around the model. In other words, _pytorch_model just holds a (mutable) reference to model, it doesn't clone the parameters.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@valiantljk
Comment options

@epwalsh
Comment options

@valiantljk
Comment options

@epwalsh
Comment options

@valiantljk
Comment options

Answer selected by valiantljk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants