Skip to content

Commit

Permalink
Type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
wujingyue committed Jan 19, 2025
1 parent 39efb76 commit d7dc6cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nvfuser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ def execute(
_enable_options=_enable_options,
_disable_options=_disable_options,
)
out_tensors = []

out_tensors: list[torch.Tensor] = []
for out_dtensor in out_dtensors:
if out_dtensor.mesh.size == 0:
out_tensors.append(out_dtensor.local)
Expand Down

0 comments on commit d7dc6cd

Please sign in to comment.