Fix promoteTypes for QInt types (#19182)
authorJerry Zhang <jerryzh@fb.com>
Fri, 12 Apr 2019 02:38:21 +0000 (19:38 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 12 Apr 2019 02:43:18 +0000 (19:43 -0700)
commit7e73783c6fefb592a112859781cf662bfb0f408d
treec150ce9eed1447c85a8bfc4c88885b074998e46a
parent422b01e78889a9fd283d8fb86bb5527c5cae3cbf
Fix promoteTypes for QInt types (#19182)

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

This is a bug discovered by zafartahirov, right now if one of the tensor is QInt
type we'll return undefined, but actually we want to allow ops that accepts
Tensors of the same QInt type to work.

Reviewed By: zafartahirov

Differential Revision: D14909172

fbshipit-source-id: 492fd6403da8c56e180efe9d632a3b7fc879aecf
c10/core/ScalarType.h