commit | f23c45bd04300bb8947899ea1af77841ddabfaa6 | [log] [tgz] |
---|---|---|
author | Nikita Shulga <nshulga@fb.com> | Fri Jun 04 16:24:53 2021 -0700 |
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | Fri Jun 04 16:27:14 2021 -0700 |
tree | bdb66369e7aeb5f23849bf393961c90754d59ddd | |
parent | 6309b342c3713f63c5afce9fdb831a5341a79c37 [diff] |
Revert D28841011: [TensorExpr] Fix printing of Bool dtype. Test Plan: revert-hammer Differential Revision: D28841011 (https://github.com/pytorch/pytorch/commit/19985d6f8432fa2dad254319fb7a8f7691b5e70d) Original commit changeset: 9f68dd47e14a fbshipit-source-id: ff517cfff49e46ed513e79eabbe9e9fd246ccce8
diff --git a/torch/csrc/jit/tensorexpr/types.cpp b/torch/csrc/jit/tensorexpr/types.cpp index 9b6793b..55eb95d 100644 --- a/torch/csrc/jit/tensorexpr/types.cpp +++ b/torch/csrc/jit/tensorexpr/types.cpp
@@ -72,10 +72,8 @@ #define TYPE_CASE(t, n) \ case ScalarType::n: \ return #t; - AT_FORALL_SCALAR_TYPES(TYPE_CASE); + AT_FORALL_SCALAR_TYPES_AND(Bool, TYPE_CASE); #undef TYPE_CASE - case ScalarType::Bool: - return "bool"; case ScalarType::Half: return "half"; default: