这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix: Remove dangling reference to ExperimentalTFLiteToTosaBytecode #97508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gaikwadrahul8
Copy link
Contributor

@gaikwadrahul8 gaikwadrahul8 commented Jul 24, 2025

Hi, Team
This addresses the NameError encountered when calling ExperimentalTFLiteToTosaBytecode(). The underlying C++ symbol was removed in TensorFlow 2.19 but the Python helper remained leading to a dangling reference. Merged PR #83174 This change replaces the function definition with a to provide clearer feedback to users that the function is no longer available.

Fixes: #88053

This commit addresses the NameError encountered when calling
.
The underlying C++ symbol was removed in TensorFlow 2.19, but the Python
helper remained, leading to a dangling reference.

This change replaces the function definition with a
to provide clearer feedback to users that the function is no longer available.

Fixes: #88053
This commit removes the trailing blank lines in
that were causing a  syntax error in the CI/CD pipeline.

This is a follow-up to the previous commit that removed the
 function.

Fixes: #88053
@keerthanakadiri keerthanakadiri requested a review from jpienaar July 24, 2025 16:15
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Jul 24, 2025
@github-project-automation github-project-automation bot moved this to Assigned Reviewer in PR Queue Jul 24, 2025
@keerthanakadiri keerthanakadiri added the python Pull requests that update Python code label Jul 24, 2025
ordered_input_arrays,
ordered_output_arrays,
)
return ExperimentalWriteBytecode(filename.encode('utf-8'), mlir_txt.encode())
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line should not change. Please configure your editor to insert a newline at the end.

Suggested change
return ExperimentalWriteBytecode(filename.encode('utf-8'), mlir_txt.encode())
return ExperimentalWriteBytecode(filename.encode('utf-8'), mlir_txt.encode())

return ExperimentalWriteBytecode(filename.encode('utf-8'), mlir_txt.encode())


def experimental_tflite_to_tosa_bytecode(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should also check where this function is being called and remove that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review Pull request awaiting review python Pull requests that update Python code size:XS CL Change Size: Extra Small
Projects
Status: Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

[TOSA] NameError: name 'ExperimentalTFLiteToTosaBytecode' is not defined
4 participants