Skip to content

Commit

Permalink
fix variable name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil26AT committed Oct 10, 2023
1 parent b2a59ab commit a42637b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gluefactory/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def is_initialized(self):

def set_initialized(self, to: bool = True):
"""Recursively set the initialization state."""
self.weights_initialized = to
self.are_weights_initialized = to
for _, w in self.named_parameters():
if isinstance(w, BaseModel):
w.set_initialized(to)

0 comments on commit a42637b

Please sign in to comment.