Skip to content

Commit

Permalink
Assign self.norm_type to input norm_type
Browse files Browse the repository at this point in the history
  • Loading branch information
gtamer2 authored and brad-mengchi committed Feb 2, 2024
1 parent 164cc0f commit 9a173bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fairscale/nn/model_parallel/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__(
self.embedding_dim = embedding_dim
self.padding_idx = padding_idx
self.max_norm = max_norm
self.norm_type = scale_grad_by_freq
self.norm_type = norm_type
self.scale_grad_by_freq = scale_grad_by_freq
self.sparse = sparse
self._weight = None
Expand Down

0 comments on commit 9a173bf

Please sign in to comment.