pytorch/torch/csrc/utils
Edward Yang dd64e738c5 Expunge TensorId from all DispatchKey names. (#36240)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36240

It's annoying, historical, and unnecessary (enum class is already
namespaced).  I did this codemod with:

```
git grep -l 'CPUTensorId' | xargs sed -i 's/CPUTensorId/CPU/g'
git grep -l 'CUDATensorId' | xargs sed -i 's/CUDATensorId/CUDA/g'
git grep -l 'VariableTensorId' | xargs sed -i 's/VariableTensorId/Autograd/g'
git grep -l 'HIPTensorId' | xargs sed -i 's/HIPTensorId/HIP/g'
git grep -l 'MSNPUTensorId' | xargs sed -i 's/MSNPUTensorId/MSNPU/g'
git grep -l 'XLATensorId' | xargs sed -i 's/XLATensorId/XLA/g'
git grep -l 'PrivateUse1_TensorId' | xargs sed -i 's/PrivateUse1_TensorId/PrivateUse1/g'
git grep -l 'PrivateUse2_TensorId' | xargs sed -i 's/PrivateUse2_TensorId/PrivateUse2/g'
git grep -l 'PrivateUse3_TensorId' | xargs sed -i 's/PrivateUse3_TensorId/PrivateUse3/g'
git grep -l 'AutocastTensorId' | xargs sed -i 's/AutocastTensorId/Autocast/g'
git grep -l '_PreAutogradTensorId' | xargs sed -i 's/_PreAutogradTensorId/_PreAutograd/g'
git grep -l 'TESTING_ONLY_GenericWrapperTensorId' | xargs sed -i 's/TESTING_ONLY_GenericWrapperTensorId/TESTING_ONLY_GenericWrapper/g'
git grep -l 'TESTING_ONLY_GenericModeTensorId' | xargs sed -i 's/TESTING_ONLY_GenericModeTensorId/TESTING_ONLY_GenericMode/g'
```

Then I did a git grep for remaining TensorId occurrences, and manually
killed those (mostly in codegen, and some docs that needed updating).

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D20929255

Pulled By: ezyang

fbshipit-source-id: dc371b6aa6e6ea7c0a5660137c14debde806a09d
2020-04-13 23:33:44 -07:00
..
auto_gil.h get rid of choco install (#30897) 2019-12-27 13:12:04 -08:00
byte_order.cpp Add send and recv backward functions for builtin operators RPC. (#25527) 2019-10-03 01:18:46 -07:00
byte_order.h [caffe2] Header path in byte_order.h (#35519) 2020-03-27 11:57:21 -07:00
cuda_enabled.h
cuda_lazy_init.cpp Use pybind11::gil_scoped_* functions instead of AutoGIL/AutoNoGIL (#30274) 2019-12-02 12:19:58 -08:00
cuda_lazy_init.h
disallow_copy.h
future.h Appropriately handle exceptions in autograd engine. (#36019) 2020-04-09 15:18:03 -07:00
hash.h
init.cpp ThroughputBenchmark: integration with Autograd Profiler (#36282) 2020-04-13 08:53:40 -07:00
init.h
invalid_arguments.cpp
invalid_arguments.h
memory.h
numpy_stub.h
object_ptr.cpp
object_ptr.h
pybind.h pybind11 type_caster for at::Generator and custom RNG python test (#34774) 2020-03-22 10:57:35 -07:00
python_arg_parser.cpp [RELAND] Add __torch_function__ benchmarks (#36138) 2020-04-10 09:14:31 -07:00
python_arg_parser.h replace Generator arguments with c10::optional<Generator> (#36232) 2020-04-13 16:26:57 -07:00
python_compat.h Raise error for code that risk deadlock (#32295) 2020-01-23 08:53:59 -08:00
python_dispatch.cpp Expunge TensorId from all DispatchKey names. (#36240) 2020-04-13 23:33:44 -07:00
python_dispatch.h [RELAND] New operator registration API (#35061) (#35629) 2020-03-29 19:48:29 -07:00
python_numbers.h [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
python_scalars.h Added tensor.is_complex(), is_complex and dtype.is_complex py binding, tensor printing, and dixed the scalar type returned for complex float (#33268) 2020-02-20 13:38:01 -08:00
python_strings.h
python_stub.h
python_tuples.h
six.h
structseq.cpp
structseq.h
tensor_apply.cpp Deprecate tensor.type() (#30281) 2019-12-05 10:55:34 -08:00
tensor_apply.h
tensor_dtypes.cpp Added type promotion logic for complex numbers (#34093) 2020-03-25 09:12:21 -07:00
tensor_dtypes.h
tensor_flatten.cpp Fix broadcast_coalesce for empty tensors (#35965) 2020-04-08 11:02:11 -07:00
tensor_flatten.h
tensor_layouts.cpp remove Complex CPU/CUDA backend enum keys (#33267) 2020-02-18 13:38:39 -08:00
tensor_layouts.h
tensor_list.cpp Deprecate tensor.type() (#30281) 2019-12-05 10:55:34 -08:00
tensor_list.h
tensor_memoryformats.cpp ChannelsLast3d support is_contiguous, contiguous, suggest_memory_format, caching (#33033) 2020-03-06 06:02:03 -08:00
tensor_memoryformats.h
tensor_new.cpp Expunge TensorId from all DispatchKey names. (#36240) 2020-04-13 23:33:44 -07:00
tensor_new.h Rename TensorTypeId to DispatchKey (#32154) 2020-01-15 11:16:08 -08:00
tensor_numpy.cpp torch.from_numpy for complex dtypes (#35531) 2020-03-27 14:40:28 -07:00
tensor_numpy.h Correctly handle scalar types, fix parse of numpy ints (#30486) 2019-12-11 15:35:57 -08:00
tensor_qschemes.cpp
tensor_qschemes.h
tensor_types.cpp remove Complex CPU/CUDA backend enum keys (#33267) 2020-02-18 13:38:39 -08:00
tensor_types.h Deprecate tensor.type() (#30281) 2019-12-05 10:55:34 -08:00
throughput_benchmark-inl.h ThroughputBenchmark: integration with Autograd Profiler (#36282) 2020-04-13 08:53:40 -07:00
throughput_benchmark.cpp [easy] ThroughputBenchmark: make ScriptModuleBenchmark usable from c++ (#35848) 2020-04-02 16:53:49 -07:00
throughput_benchmark.h ThroughputBenchmark: integration with Autograd Profiler (#36282) 2020-04-13 08:53:40 -07:00
variadic.cpp
variadic.h Fix typos, via a Levenshtein-type corrector (#31523) 2020-01-17 16:03:19 -08:00