Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyouzhi committed Mar 4, 2024
1 parent eb33fb1 commit 55dbaf5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions deepspeed/moe/sharded_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ def gumbel_rsample(shape: Tuple, device: torch.device) -> Tensor:
class _AllToAll(torch.autograd.Function):

@staticmethod
def forward(
ctx: Any,
group: dist.ProcessGroup,
input: Tensor) -> Tensor: # type: ignore
def forward(ctx: Any, group: dist.ProcessGroup, input: Tensor) -> Tensor: # type: ignore
ctx.group = group
input = input.contiguous()
output = torch.empty_like(input)
Expand Down

0 comments on commit 55dbaf5

Please sign in to comment.