pytorch/tools/codegen/api
Scott Wolchok 1211bccc65 [PyTorch] Fix const correctness for resize native functions (#55351)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55351

We incorrectly used `Tensor&` to mean "the underlying
TensorImpl cannot be changed", as explained in
https://github.com/zdevito/ATen/issues/27#issuecomment-330717839 .
This diff gets us on the path to fixing this problem: we have an
incremental way to fix individual native functions so that we can
apply any handwritten fixes a few at a time. It gets the migration
started with the `resize` family of native functions.
ghstack-source-id: 127092677

Test Plan: fitsships

Reviewed By: ezyang

Differential Revision: D27583983

fbshipit-source-id: 4eeeec85f5d268e9d0f1645eb9396914a9f9557f
2021-04-21 14:51:41 -07:00
..
__init__.py
autograd.py split out NamedCType from CType. Remove direct string comparison from autograd codegen (#55334) 2021-04-16 11:43:08 -07:00
cpp.py [PyTorch] Fix const correctness for resize native functions (#55351) 2021-04-21 14:51:41 -07:00
dispatcher.py Revert D27708346: generate xla codegen in-tree 2021-04-21 11:07:45 -07:00
meta.py Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
native.py [PyTorch] Fix const correctness for resize native functions (#55351) 2021-04-21 14:51:41 -07:00
python.py add C++ namespacing logic to ctypes (#55047) 2021-04-16 11:43:06 -07:00
structured.py split out NamedCType from CType. Remove direct string comparison from autograd codegen (#55334) 2021-04-16 11:43:08 -07:00
translate.py split out NamedCType from CType. Remove direct string comparison from autograd codegen (#55334) 2021-04-16 11:43:08 -07:00
types.py Revert D27708346: generate xla codegen in-tree 2021-04-21 11:07:45 -07:00