Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Liu <[email protected]>
  • Loading branch information
Victarry committed Mar 15, 2024
1 parent 23c24d8 commit 8dc92d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions transformer_engine/pytorch/cpp_extensions/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def cast_to_fp8(
fp8_tensor,
otype,
)
else:
return inp
return inp

def cast_from_fp8(
inp: torch.Tensor,
Expand Down
1 change: 0 additions & 1 deletion transformer_engine/pytorch/module/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ def forward(
weight_tensor = self.weight_tensor
bias_tensor = self.bias_tensor


# Fetch the fp8 weights placeholders (for linear/gemm)
weight1_fp8, weight1_t_fp8 = self.get_fp8_weights_scratchpad(
is_first_microbatch
Expand Down

0 comments on commit 8dc92d1

Please sign in to comment.