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 17, 2024
1 parent 1db61e2 commit 6a86660
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transformer_engine/pytorch/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -5110,10 +5110,10 @@ def convert_to_torch_float8(tensor, dtype):
if fp8 and fp8_meta["recipe"].fp8_mha:
output = Float8Tensor.make_like(
output,
data=output._data.reshape(
batch_size, max_seqlen_q // cp_size, -1
).transpose(0,1).contiguous()
)
data=output._data.reshape(batch_size, max_seqlen_q // cp_size, -1)
.transpose(0, 1)
.contiguous(),
)
else:
output = (
output.view(batch_size, max_seqlen_q // cp_size, -1)
Expand Down

0 comments on commit 6a86660

Please sign in to comment.