Skip to content

Fix: Clarify GPU compatibility check in TFLite Model Analyzer #97513

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 1 commit into
base: master
Choose a base branch
from

Conversation

gaikwadrahul8
Copy link
Contributor

@gaikwadrahul8 gaikwadrahul8 commented Jul 24, 2025

Hi, Team
This addresses the misleading output of the TFLite Model Analyzer tool regarding GPU compatibility checks.

@google-ml-butler google-ml-butler bot added the size:S CL Change Size: Small label Jul 24, 2025
@gaikwadrahul8 gaikwadrahul8 force-pushed the fix/tflite-analyzer-gpu-compat-v2 branch from 35cf465 to 3897cdc Compare July 24, 2025 15:38
This commit addresses the misleading output of the  tool
regarding GPU compatibility checks.

- Adds a deprecation warning for the  argument.
- Modifies the output message to clearly state that GPU compatibility checks
  are skipped when the flag is enabled, as the feature is deprecated.

Fixes: #77042

This commit addresses the misleading output of the tool
regarding GPU compatibility checks.

- Adds a deprecation warning for the argument.
- Modifies the output message to clearly state that GPU compatibility checks
  are skipped when the flag is enabled, as the feature is deprecated.

Fixes: #77042
@gaikwadrahul8 gaikwadrahul8 force-pushed the fix/tflite-analyzer-gpu-compat-v2 branch from 3897cdc to 863b3d6 Compare July 24, 2025 15:46
@github-project-automation github-project-automation bot moved this to Assigned Reviewer in PR Queue Jul 24, 2025
@keerthanakadiri keerthanakadiri requested a review from jpienaar July 24, 2025 16:16
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Jul 24, 2025
Comment on lines +65 to +66
@deprecation.deprecated_arg_value(
None, "GPU compatibility check is deprecated.", "gpu_compatibility")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Umm, these need to be decided by the API owners, cannot just add deprecations randomly.

Copy link
Contributor Author

@gaikwadrahul8 gaikwadrahul8 Jul 28, 2025

Choose a reason for hiding this comment

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

Hi @mihaimaruseac, After reviewing the discussion in PR #74830 (comment), I realize the core issue is a confusing output message which appears to be generated in

if (check_gpu_compatibility && model_is_gpu_compatible) {

I am happy to update this PR to address that output message instead of my current changes. Please let me know if you would prefer that or if I should close this PR because these need to be decided by the API owners. Thank you for your time.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If it was deprecated then a deprecation message (from the decorator) is the best path forward, but still needs to go via approval of the API owners.

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 size:S CL Change Size: Small
Projects
Status: Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy