pytorch/test/cpp
Shunting Zhang 26d9386f67 Make string serialization of C++ FunctionSchema consistent with torchgen.model.FunctionSchema
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77926

There is a discrepency between the string representation of C++ FunctionSchema and torchgen.model.FunctionSchema.
The latter will not add parenthesis around the returned types if that a single item,
but the C++ FunctionSchema always add the parenthesis.

Make them consistent so we can convert one type to the other via its string representation and parse method.

Differential Revision: [D36535924](https://our.internmc.facebook.com/intern/diff/D36535924/)

Approved by: https://github.com/bdhirsh
2022-05-24 19:39:26 +00:00
..
api Enable BFloat16 ELU, SELU and CELU in CPU path (#62546) 2022-05-12 16:56:57 +00:00
c10d
common
dist_autograd
jit Make string serialization of C++ FunctionSchema consistent with torchgen.model.FunctionSchema 2022-05-24 19:39:26 +00:00
lazy Implement sym_sizes to create proper IR for sym ints representing tensor sizes (#77756) 2022-05-20 05:39:03 +00:00
lite_interpreter_runtime
monitor
profiler [RecordFunction] More effecient machinery to determine which callbacks to run. (#75807) 2022-04-19 20:46:16 +00:00
rpc
tensorexpr Simplify IfThenElse and CompareSelect within for-loop (#76793) 2022-05-15 20:21:28 +00:00
__init__.py