Skip to content

Conversation

ddavis-2015
Copy link
Member

@ddavis-2015 ddavis-2015 commented Aug 20, 2025

@tensorflow/micro

Detect output tensors with dynamic shapes after the Prepare method for each operator in a subgraph has been called. Upon detection of a dynamic tensor, return kTfLiteError from the MicroInterpreter::AllocateTensors method.

Add unit test for the MicroInterpreter.

Fix typos in Prepare failure message.

Restore current operator/subgraph index after subgraph invocation failure.

bug=fixes #3180

@tensorflow/micro

Detect output tensors with dynamic shapes after the Prepare method for each operator in a subgraph has been called. Upon detection of a dynamic tensor, return kTfLiteError from the MicroInterpreter::AllocateTensors method.

Add unit test for the MicroInterpreter.

Fix typos in Prepare failure message.

bug=fixes tensorflow#3180
@ddavis-2015 ddavis-2015 self-assigned this Aug 20, 2025
@ddavis-2015 ddavis-2015 added the bug Something isn't working label Aug 20, 2025
@ddavis-2015 ddavis-2015 requested a review from veblush August 20, 2025 23:41
@ddavis-2015 ddavis-2015 marked this pull request as ready for review August 20, 2025 23:41
@ddavis-2015 ddavis-2015 requested a review from a team as a code owner August 20, 2025 23:41
@@ -1,4 +1,4 @@
/* Copyright 2024 The TensorFlow Authors. All Rights Reserved.
/* Copyright 2025 The TensorFlow Authors. All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the original year.

@mergify mergify bot merged commit 8eb17a7 into tensorflow:main Aug 22, 2025
98 of 99 checks passed
@ddavis-2015 ddavis-2015 deleted the dynamic-tensor-checks branch August 22, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect and fail dynamic tensors
3 participants