pytorch/tools/codegen/api
Sebastian Messmer 47c57b8836 Fix Native signature for optional Tensor arguments (#50767)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50767

The native signature for optional tensor arguments wrongly produced "Tensor" instead of "optional<Tensor>". We didn't notice this because all internal ops currently use hacky_wrapper, and for hacky_wrapper, "Tensor" is correct.

This PR fixes that and ports one op (batch_norm) to not use hacky_wrapper anymore as a proof of fix.
ghstack-source-id: 120017543

Test Plan: waitforsandcastle

Reviewed By: bhosmer

Differential Revision: D25960941

fbshipit-source-id: ca6fe133109b5d85cff52390792cf552f12d9590
2021-01-19 21:55:46 -08:00
..
__init__.py Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
autograd.py [pytorch][codegen] migrate gen_variable_type to new data model (#49735) 2021-01-05 14:12:39 -08:00
cpp.py Remove codegen logic to support non-c10-full ops (#49164) 2021-01-06 14:17:36 -08:00
dispatcher.py Remove codegen logic to support non-c10-full ops (#49164) 2021-01-06 14:17:36 -08:00
meta.py Introduce tools.codegen.api.translate (#49122) 2020-12-16 16:18:40 -08:00
native.py Fix Native signature for optional Tensor arguments (#50767) 2021-01-19 21:55:46 -08:00
python.py Remove codegen logic to support non-c10-full ops (#49164) 2021-01-06 14:17:36 -08:00
translate.py Introduce tools.codegen.api.translate (#49122) 2020-12-16 16:18:40 -08:00
types.py [pytorch][codegen] migrate gen_variable_type to new data model (#49735) 2021-01-05 14:12:39 -08:00