Skip Slice if it's no op (#19155)
authorLu Fang <lufang@fb.com>
Thu, 11 Apr 2019 19:23:30 +0000 (12:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 11 Apr 2019 19:26:32 +0000 (12:26 -0700)
commit33a950924ad8a370d9945515c51feb0eb75fbf3b
tree30c738e6620b484cc6e261b3ae9cdfca5680aa54
parentfeb5d26510919b23ba35a90e45cd5a0f4cc26474
Skip Slice if it's no op (#19155)

Summary:
If it's identity op, just skip the slice and return the input.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19155

Reviewed By: zrphercule

Differential Revision: D14890238

Pulled By: houseroad

fbshipit-source-id: f87b93df2cca0cb0e8ae2a1d95ba148044eafd4a
test/onnx/expect/TestOperators.test_slice.expect
torch/onnx/symbolic.py