Skip to content

Commit 0f264fe

Browse files
terryheocopybara-github
authored andcommitted
Do not fail with sparsity tensors
Update UnpackTensor() emits warning with sparsity tensors instead of failure. LiteRT-PiperOrigin-RevId: 816005995
1 parent 310c35d commit 0f264fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

litert/core/model/model_load.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ LiteRtStatus UnpackTensor(FlatbufferContext& context,
250250

251251
if (tfl_tensor.sparsity() != nullptr) {
252252
// TODO: b/365299994 - Support sparsity tensors.
253-
LITERT_LOG(LITERT_ERROR, "Sparsity tensors not yet supported.");
254-
return kLiteRtStatusErrorUnsupported;
253+
LITERT_LOG(LITERT_WARNING,
254+
"Sparsity tensors may not yet be fully supported.");
255255
}
256256

257257
return kLiteRtStatusOk;

0 commit comments

Comments
 (0)