Skip to content

Commit bd86777

Browse files
authored
unbreak op_fill in release builds with -DNDEBUG (#7873)
1 parent 2eb2862 commit bd86777

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernels/portable/cpu/op_fill.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ Tensor& fill_tensor_out(
9191
CTYPE_A b_casted;
9292
ET_SWITCH_REALHBBF16_TYPES(b_type, ctx, "fill.Tensor_out", CTYPE_B, [&] {
9393
CTYPE_B b_val;
94-
ET_DCHECK_MSG(
95-
extract_scalar_tensor(b, &b_val), "extract_scalar_tensor failed!");
94+
ET_EXTRACT_SCALAR_TENSOR(b, b_val);
9695
b_casted = static_cast<CTYPE_A>(b_val);
9796
});
9897

0 commit comments

Comments
 (0)