pytorch/test/expect/TestScript.test_annot_ast_mypy_method.expect
Lu Fang 0e3a359a38 Align the operator<< for Argument with FunctionSchema parser (#23203)
Summary:
Align the Argument's operator<< with parser,
additional support:
1) List size
2) real default value
3) Alias information

Pull Request resolved: https://github.com/pytorch/pytorch/pull/23203
ghstack-source-id: 87118985

Reviewed By: zrphercule

Differential Revision: D16433188

fbshipit-source-id: aea5711f93feacd94d1732e2f0d61218a31a0c5c
2019-07-25 15:28:17 -07:00

9 lines
No EOL
697 B
Text

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