Use AT_WARN for warnings in the JIT (#14770)
authorAdam Paszke <adam.paszke@gmail.com>
Wed, 5 Dec 2018 08:07:51 +0000 (00:07 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 5 Dec 2018 08:16:09 +0000 (00:16 -0800)
commitf89de64796104ca3a48a465a62017edea1cd7506
tree7f705c0618773091a913f8fe7c0b3d604d2b7fbb
parentecc17fe3dd03962f36a989659336e42de86a38ca
Use AT_WARN for warnings in the JIT (#14770)

Summary:
Previously their implementation dispatched to prim::Print, which kept
printing the warnings.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14770

Differential Revision: D13327629

Pulled By: suo

fbshipit-source-id: b9913f533d4530eb7c29146c39981ba7f72b6b68
aten/src/ATen/core/interned_strings.h
test/expect/TestJit.test_warnings.expect
torch/csrc/jit/passes/common_subexpression_elimination.cpp
torch/csrc/jit/passes/dead_code_elimination.cpp
torch/csrc/jit/register_prim_ops.cpp
torch/csrc/jit/script/builtin_functions.cpp