[nnc] Fix dtype promotion involving scalars (#64002)
authorBert Maher <bertrand@fb.com>
Thu, 26 Aug 2021 16:41:58 +0000 (09:41 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Aug 2021 16:43:15 +0000 (09:43 -0700)
commitba5f1b1076ed6fae4a46d7317204963a4cd53701
treeb8fad6e0c91817be8c6c57d98278f700ef0bf18a
parent1354ee417a4abfaacd8333fb6316c6f58494c0d7
[nnc] Fix dtype promotion involving scalars (#64002)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64002

Fixes https://github.com/pytorch/vision/issues/4315

Test Plan: Imported from OSS

Reviewed By: navahgar

Differential Revision: D30566979

Pulled By: bertmaher

fbshipit-source-id: eaa98b9534a926be7fcd337d46c5a0acb3243179
torch/csrc/jit/passes/tensorexpr_fuser.cpp
torch/csrc/jit/tensorexpr/kernel.cpp