Skip to content

Commit 38b51aa

Browse files
print bfloat16 tensor data (pytorch#14889)
Handle bfloat16 when printing tensor data.
1 parent 09c93d4 commit 38b51aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/evalue_util/print_evalue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void print_tensor(std::ostream& os, executorch::aten::Tensor tensor) {
160160
break;
161161

162162
switch (tensor.scalar_type()) {
163-
ET_FORALL_REAL_TYPES_AND2(Bool, Half, PRINT_TENSOR_DATA)
163+
ET_FORALL_REALHBBF16_TYPES(PRINT_TENSOR_DATA)
164164
default:
165165
os << "[<unhandled scalar type " << (int)tensor.scalar_type() << ">]";
166166
}

0 commit comments

Comments
 (0)