Make CostConfig's have their own copies of weights? #383
Unanswered
YuhengZhi
asked this question in
Software Q&A
Replies: 1 comment 1 reply
-
Is there a reason to share the same instance of CostConfig between costs? It's a dataclass and they are expected to be created separately per cost. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We noticed that if multiple costs are initialized using the same cost_cfg, their weights share the same tensors under the hood. So changing one cost's weights will implicitly change the other costs' weights sharing the same torch tensors.
Beta Was this translation helpful? Give feedback.
All reactions