Skip to content

Commit adaedd0

Browse files
committed
lint
1 parent 42b057a commit adaedd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torch/distributed/fsdp/_fully_shard/_fsdp_param_group.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ def post_backward(self, *unused: Any):
454454
fsdp_param.unsharded_accumulated_grad = None
455455
elif fsdp_param.unsharded_param.grad is not None:
456456
fsdp_params_with_grad.append(fsdp_param)
457-
unsharded_grads.append(fsdp_param.unsharded_grad_data.to(fsdp_param.reduce_dtype))
457+
unsharded_grads.append(
458+
fsdp_param.unsharded_grad_data.to(fsdp_param.reduce_dtype)
459+
)
458460
fsdp_param.unsharded_param.grad = None
459461
if self.reshard_after_backward:
460462
self.reshard()

0 commit comments

Comments
 (0)