Stop erroneously running aten::warn (#15124)
authorRichard Zou <zou3519@gmail.com>
Wed, 12 Dec 2018 19:32:05 +0000 (11:32 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Dec 2018 19:35:23 +0000 (11:35 -0800)
commitb34ab435efd9b4d839171d27bd6a0f321178d46b
tree8b89cb2379d9d56b4a8a9c4fbf4631f8492d2f13
parent2d485ffb17ebdec54b399df591e1da031e101d46
Stop erroneously running aten::warn (#15124)

Summary:
Fixes #15119. Before this PR, we were propagating constants through
aten::warn AND running it as a part of shape analysis.
This caused aten::warn to be run regardless of if it is
supposed to be run dynamically. This PR adds an exclusion for aten::warn
in constant propagation and shape analysis, similar to that of prim::RaiseException.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15124

Differential Revision: D13432815

Pulled By: zou3519

fbshipit-source-id: 15ab533ce2accb2da3fd4e569070c7979ce61708
test/test_jit.py
torch/csrc/jit/passes/constant_propagation.cpp
torch/csrc/jit/passes/shape_analysis.cpp