Files
pytorch/test/expect/TestScript.test_annot_ast_py3_fn.expect
Ansley Ussery 6831d8e379 Support Union in TorchScript (#64234)
Summary:
This PR is created to replace https://github.com/pytorch/pytorch/pull/53180 PR stack, which has all the review discussions. Reason for needing a replacement is due to a messy Sandcastle issue.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64234

Reviewed By: gmagogsfm

Differential Revision: D30656444

Pulled By: ansley

fbshipit-source-id: 77536c8bcc88162e2c72636026ca3c16891d669a
2021-09-03 06:12:24 -07:00

10 lines
473 B
Plaintext

foo(Tensor x, (Tensor, Tensor) y) -> ((Tensor, Tensor))
foo(Tensor x, (Tensor, Tensor) y) -> ((Tensor, Tensor))
foo(str x, (Tensor, Tensor) y) -> ((str, str))
foo(int x, (Tensor, Tensor) y) -> ((int, int))
foo(bool x, (Tensor, Tensor) y) -> ((bool, bool))
foo(float[3] x, (Tensor, Tensor) y) -> ((float[], float[]))
foo(int[2] x, (Tensor, Tensor) y) -> ((int[], int[]))
foo(int[] x, (Tensor, Tensor) y) -> ((int[], int[]))
foo(int? x, (Tensor, Tensor) y) -> ((int?, int?))