Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update models.py #2985

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions baselines/heterofl/heterofl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
self.blocks = nn.Sequential(*blocks)

def _get_norm(self, j: int):
"""Return the relavant norm."""
"""Return the relevant norm."""
if self.model_config["norm"] == "bn":
norm = nn.BatchNorm2d(
self.model_config["hidden_size"][j],
Expand All @@ -85,7 +85,7 @@ def _get_norm(self, j: int):
return norm

def _get_scale(self):
"""Return the relavant scaler."""
"""Return the relevant scaler."""
if self.model_config["scale"]:
scaler = _Scaler(self.model_config["rate"])
else:
Expand Down