Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions monai/networks/trt_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def parse_groups(
Tuple of Union[torch.Tensor, List[torch.Tensor]], according to the grouping in output_lists

"""
groups: tuple[torch.Tensor | list[torch.Tensor], ...] = tuple()
groups: tuple[torch.Tensor | list[torch.Tensor], ...] = ()
cur = 0
for l in range(len(output_lists)):
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
gl = output_lists[l]
Expand All @@ -273,7 +273,7 @@ def parse_groups(
groups = (*groups, ret[cur : cur + gl[0]])
cur = cur + gl[0]
elif gl[0] == -1:
rev_groups: tuple[torch.Tensor | list[torch.Tensor], ...] = tuple()
rev_groups: tuple[torch.Tensor | list[torch.Tensor], ...] = ()
rcur = len(ret)
for rl in range(len(output_lists) - 1, l, -1):
rgl = output_lists[rl]
Expand Down
Loading