Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ONNX] Improve lower tuples and handle control flow #57650

Merged
merged 8 commits into from
May 18, 2021
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
Prev Previous commit
Next Next commit
flake8
  • Loading branch information
neginraoof committed May 18, 2021
commit f119d6d4ca63635261f6b0360da366c62022c2bd
4 changes: 2 additions & 2 deletions test/onnx/test_pytorch_onnx_onnxruntime.py
Original file line number Diff line number Diff line change
Expand Up @@ -6784,7 +6784,7 @@ def forward(self, input):
def test_lower_tuple(self):
neginraoof marked this conversation as resolved.
Show resolved Hide resolved
class TupleModule(torch.nn.Module):
def forward(self, input1, input2):
# type: (torch.Tensor, torch.Tensor) -> torch.Tensor:
# type: (torch.Tensor, torch.Tensor) -> torch.Tensor
a = (input1, input2)
b = a
c = b
Expand All @@ -6811,7 +6811,7 @@ def forward(self, input1, input2):
def test_lower_tuple_2(self):
class TupleModule(torch.nn.Module):
def forward(self, input):
# type: (torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
# type: (torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]
a = (input, input)
for x in range(5):
c, d = a
Expand Down