Skip to content

Commit ea8b6e7

Browse files
committed
MP_ERROR_TEXT
1 parent 7f04132 commit ea8b6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/microlite/tensorflow-microlite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static mp_obj_t tensor_quantize_float_to_int8(mp_obj_t self_in, mp_obj_t float_o
129129

130130
// Check that the tensor is of type int8
131131
if (tensor->type != kTfLiteInt8) {
132-
mp_raise_TypeError ("Expected Tensor to be of type ktfLiteInt8.");
132+
mp_raise_TypeError(MP_ERROR_TEXT("Expected Tensor to be of type ktfLiteInt8."));
133133
}
134134

135135
// Converts the object to a float

0 commit comments

Comments
 (0)