fix reordering of inlines (#17557)
authorZachary DeVito <zdevito@fb.com>
Thu, 28 Feb 2019 21:06:10 +0000 (13:06 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 28 Feb 2019 21:12:15 +0000 (13:12 -0800)
commit9cbd7a18f5af36699809fa19f98b2f2a24b6f6e1
treed4aa9bbd9a5120a1bac2678d0da8b23e00699a59
parent2e5a8cee82b21b917d3d5cf6b77577f798b596a5
fix reordering of inlines (#17557)

Summary:
See comment inside of code. This fixes a bug where sometimes we would try to avoid printing long lines but would inadvertently reorder the expressions, which can change the semantics of the program
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17557

Differential Revision: D14250608

Pulled By: zdevito

fbshipit-source-id: d44996af4e90fe9ab9508d13cd04adbfc7bb5d1c
test/test_jit.py
torch/csrc/jit/passes/python_print.cpp