centralize side effects ops as node method (#15188)
authorElias Ellison <eellison@fb.com>
Wed, 19 Dec 2018 18:45:32 +0000 (10:45 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 19 Dec 2018 18:52:54 +0000 (10:52 -0800)
commit33018e4e09b16075440ea72a6929b15c7ae670f5
tree056303280bc6fedc8a674793f77c1786e967bdf6
parent560530aeecdae8c37d47c8ee7967c8583843a0bf
centralize side effects ops as node method (#15188)

Summary:
A number of different passes rely on whether a node has side effects. This centralizes the list of side effectful ops in one place.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15188

Differential Revision: D13508438

Pulled By: eellison

fbshipit-source-id: 2143e782b787731ce007b6dcd50cbde30e1b8dd0
torch/csrc/jit/ir.cpp
torch/csrc/jit/ir.h
torch/csrc/jit/passes/common_subexpression_elimination.cpp
torch/csrc/jit/passes/constant_propagation.cpp
torch/csrc/jit/passes/dead_code_elimination.cpp
torch/csrc/jit/passes/shape_analysis.cpp