Clean up casting ops (#14947)
authorZachary DeVito <zdevito@fb.com>
Tue, 11 Dec 2018 06:10:11 +0000 (22:10 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Dec 2018 06:15:08 +0000 (22:15 -0800)
commit48a361cc62f129514ab9ae7b195897795b58fad6
treeded188cfd9b29ab13910b5387204c405f70fbbcd
parentcff509e2b1d4a49fc2f8a317e35a9691a70578c6
Clean up casting ops (#14947)

Summary:
This removes FloatToInt style names replacing it with just the destination
name (e.g. FloatToInt -> Float). This makes it more consistent with the
syntax and makes it easier to add type conversions (just add a new
prim::Int op, for instance).

None of these ops get serialized so this should not effect loading of
old models.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14947

Differential Revision: D13408409

Pulled By: zdevito

fbshipit-source-id: d773fe863f14d9de893f686832769f8cc8903a8e
40 files changed:
aten/src/ATen/core/interned_strings.h
aten/src/ATen/core/jit_type.h
test/expect/TestBatched.test_for.expect
test/expect/TestBatched.test_if_else.expect
test/expect/TestBatched.test_if_else_with_scalar.expect
test/expect/TestBatched.test_if_noelse.expect
test/expect/TestBatched.test_if_noelse_with_scalar.expect
test/expect/TestBatched.test_while.expect
test/expect/TestJit.test_alexnet.expect
test/expect/TestJit.test_constant_prop_if_constant.expect
test/expect/TestJit.test_constant_prop_nested.expect
test/expect/TestJit.test_decompose_addmm.expect
test/expect/TestJit.test_function_default_values-bool.expect
test/expect/TestJit.test_inplace_copy.expect
test/expect/TestJit.test_recursive_cse.expect
test/expect/TestJit.test_trace_size.expect
test/expect/TestJit.test_trace_size_with_grad.expect
test/expect/TestJit.test_warnings.expect
test/expect/TestScript.test_constant_pooling.expect
test/expect/TestScript.test_logical_short_circuit.expect
test/expect/TestScript.test_loop_unroll_unused_counter.expect
test/expect/TestScript.test_loop_unrolling.expect
test/expect/TestScript.test_loop_unrolling_nested.expect
test/expect/TestScript.test_mutable_dce_block.expect
test/expect/TestScript.test_tensor_scalar_fusion_cuda-2.expect
test/expect/TestScript.test_tuple_indexing.expect
test/expect/TestScript.test_tuple_slicing.expect
test/test_jit.py
torch/csrc/jit/ir.cpp
torch/csrc/jit/ir.h
torch/csrc/jit/passes/erase_number_types.cpp
torch/csrc/jit/passes/peephole.cpp
torch/csrc/jit/passes/python_print.cpp
torch/csrc/jit/passes/shape_analysis.cpp
torch/csrc/jit/passes/to_batch.cpp
torch/csrc/jit/passes/utils/check_alias_annotation.cpp
torch/csrc/jit/register_prim_ops.cpp
torch/csrc/jit/script/compiler.cpp
torch/csrc/jit/script/init.cpp
torch/csrc/jit/tracer.cpp