pytorch/test
Zachary DeVito f34192db0f Rename DynamicType -> TensorType (#16787)
Summary:
```
import json
from subprocess import check_call
from pprint import pprint
renames = {
    'c10::TensorType': 'DimentionedTensorType',
    'c10::DynamicType': 'TensorType',
    'c10::TensorTypePtr': 'DimentionedTensorTypePtr',
    'c10::DynamicTypePtr': 'TensorTypePtr',
    'c10::TypeKind::DynamicType': 'TensorType',
    'c10::TypeKind::TensorType': 'DimentionedTensorType',
}

entries = json.loads(open('compile_commands.json', 'r').read())

build = None
sources = []

for e in entries:
    name = e['file']
    if not ('jit' in name or 'ATen/core' in name):
        continue
    build = e['directory']
    sources.append(name)

args = ['clang-rename', '-i', '-force', '-pl']
for name in sorted(renames.keys()):
    args += ['-qualified-name={}'.format(name), '-new-name={}'.format(renames[name])]

for source in sources:
    cmd = args + [source]
    pprint(args)
    check_call(cmd, cwd=build)
    check_call(['git', 'stash', 'push', '-m', 'rename'])
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16787

Differential Revision: D13974132

Pulled By: zdevito

fbshipit-source-id: 8368fd53e17cff83707bbe77f2d7aad74f8ce60e
2019-02-06 17:31:07 -08:00
..
bottleneck
cpp Rename DynamicType -> TensorType (#16787) 2019-02-06 17:31:07 -08:00
cpp_extensions Rename IntList to IntArrayRef. (#16751) 2019-02-05 14:54:34 -08:00
custom_operator
data
error_messages
expect Preserve method parameter names (#16750) 2019-02-05 12:51:24 -08:00
ffi/src
onnx fix the ONNX ci (#16674) 2019-02-01 15:58:39 -08:00
optim
test_module
common_cuda.py
common_methods_invocations.py Revert "Move outplace ops to ATen (#12413)" (#16731) 2019-02-04 19:30:04 -08:00
common_nn.py Port the backend of FractionalMaxPool3d from TH to ATen (#15575) 2019-01-16 14:16:30 -08:00
common_utils.py Add stack & cat support for CPU Half (#16389) 2019-01-29 13:06:29 -08:00
expecttest.py
run_test.py create type hint stub files for module torch (#12500) 2019-01-29 12:14:17 -08:00
test_autograd.py Fix slogdet sign requiring grad when input requires grad (#16337) 2019-01-27 12:11:14 -08:00
test_c10d.py Disable flaky test 2019-01-23 11:57:44 -08:00
test_cpp_extensions.py Expose backend extensions to python 2019-02-01 11:00:18 -08:00
test_cuda.py Fix issue with scalars and __rpow__ (#16687) 2019-02-02 18:55:51 -08:00
test_cuda_primary_ctx.py
test_dataloader.py Make test_proper_exit more robust (#16249) 2019-01-25 08:25:05 -08:00
test_distributed.py Improve assertion failure message (#14813) 2018-12-05 17:20:25 -08:00
test_distributions.py Do not use fork to invoke test scripts in pytorch rocm CI 2018-12-19 21:35:16 -08:00
test_expecttest.py
test_indexing.py printing correct dimension while indexing (#16495) 2019-01-31 11:45:56 -08:00
test_indexing_cuda.py
test_jit.py Rename DynamicType -> TensorType (#16787) 2019-02-06 17:31:07 -08:00
test_multiprocessing.py Unify device() return type in Stream, Event, and Tensor (#16150) 2019-01-19 23:01:31 -08:00
test_multiprocessing_spawn.py
test_nccl.py
test_nn.py Better bounds checks in ctcloss (#16269) 2019-02-01 08:02:54 -08:00
test_numba_integration.py
test_optim.py Redefine scheduler to set learning rate using recursive formula (#14010) 2018-12-18 16:44:31 -08:00
test_sparse.py Fix uninitialized data and broken broadcasting with sparse.mm and spa… (#16572) 2019-01-30 16:08:50 -08:00
test_thd_distributed.py
test_torch.py logsumexp for multiple dimensions (#16475) 2019-02-05 08:32:11 -08:00
test_type_hints.py create type hint stub files for module torch (#12500) 2019-01-29 12:14:17 -08:00
test_type_info.py Allow converting char tensor to numpy; add [fi]info.min (#15046) 2018-12-24 09:11:24 -08:00
test_utils.py Make checkpoint_sequential work with multiple arguments (#14278) 2018-12-04 18:47:43 -08:00