Peephole Optimize Shape Ops (#18549)
authorElias Ellison <eellison@fb.com>
Mon, 1 Apr 2019 22:33:35 +0000 (15:33 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 1 Apr 2019 22:39:43 +0000 (15:39 -0700)
commit20b63aa9776c7dbe8358daf1111464cb30ce08b6
tree321caf2197e24a425a7378c1f7e18d5d728a1ed2
parent4a0f842d42dd5eb36b9aa77b52be36b7f6a18a35
Peephole Optimize Shape Ops (#18549)

Summary:
Peephole optimize ops that just require Dimensioned Tensor Type, which is what we specialize graphs on.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18549

Differential Revision: D14690827

Pulled By: eellison

fbshipit-source-id: 9d7439eb584f0a5b877f5aa53cf80150f00e7e5f
test/test_jit.py
torch/csrc/jit/passes/peephole.cpp