Skip to content

Commit 3201f9e

Browse files
handle out != None
1 parent 7fed93e commit 3201f9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchao/prototype/moe_training/tensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def fsdp_post_all_gather(
183183
f"{out_data.dtype} {param_dtype}"
184184
)
185185
out_data.copy_(data)
186+
186187
return
187188

188189
# For training step 0, out=None, so we need to return a new ScaledGroupedMMTensor.

0 commit comments

Comments
 (0)