diff --git a/python/tflite_micro/interpreter_wrapper.cc b/python/tflite_micro/interpreter_wrapper.cc index 53efe8e311b..b1be37388fd 100644 --- a/python/tflite_micro/interpreter_wrapper.cc +++ b/python/tflite_micro/interpreter_wrapper.cc @@ -104,11 +104,6 @@ bool CheckTensor(const TfLiteTensor* tensor) { return false; } - if (tensor->sparsity != nullptr) { - PyErr_SetString(PyExc_ValueError, "TFLM doesn't support sparse tensors"); - return false; - } - int py_type_num = TfLiteTypeToPyArrayType(tensor->type); if (py_type_num == NPY_NOTYPE) { PyErr_SetString(PyExc_ValueError, "Unknown tensor type.");