Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2024
1 parent 1b4ef9f commit 2c464c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions transformer_engine/pytorch/module/layernorm_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,7 @@ def forward(
unfused_weights = [w.dequantize() for w in unfused_weights]
weight_tensor = _noop_cat(unfused_weights)
if self.use_bias:
bias_tensor = _noop_cat(
[self._fast_get_param(name) for name in self.bias_names]
)
bias_tensor = _noop_cat([self._fast_get_param(name) for name in self.bias_names])
else:
bias_tensor = self._fast_get_param(self.bias_names[0]) # Unused

Expand Down
4 changes: 1 addition & 3 deletions transformer_engine/pytorch/module/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,9 +954,7 @@ def forward(
unfused_weights = [w.dequantize() for w in unfused_weights]
weight_tensor = _noop_cat(unfused_weights)
if self.use_bias:
bias_tensor = _noop_cat(
[self._fast_get_param(name) for name in self.bias_names]
)
bias_tensor = _noop_cat([self._fast_get_param(name) for name in self.bias_names])
else:
bias_tensor = self._fast_get_param(self.bias_names[0]) # Unused

Expand Down

0 comments on commit 2c464c5

Please sign in to comment.