Skip to content

Commit f23c45b

Browse files
malfetfacebook-github-bot
authored andcommitted
Revert D28841011: [TensorExpr] Fix printing of Bool dtype.
Test Plan: revert-hammer Differential Revision: D28841011 (pytorch@19985d6) Original commit changeset: 9f68dd47e14a fbshipit-source-id: ff517cfff49e46ed513e79eabbe9e9fd246ccce8
1 parent 6309b34 commit f23c45b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torch/csrc/jit/tensorexpr/types.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ std::string Dtype::ToCppString() const {
7272
#define TYPE_CASE(t, n) \
7373
case ScalarType::n: \
7474
return #t;
75-
AT_FORALL_SCALAR_TYPES(TYPE_CASE);
75+
AT_FORALL_SCALAR_TYPES_AND(Bool, TYPE_CASE);
7676
#undef TYPE_CASE
77-
case ScalarType::Bool:
78-
return "bool";
7977
case ScalarType::Half:
8078
return "half";
8179
default:

0 commit comments

Comments
 (0)