Skip to content
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

Disallow platform aliases for get_topology_desc #25143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaro-sevcik
Copy link
Contributor

No description provided.

@@ -1250,10 +1250,15 @@ def using_pjrt_c_api(backend=None):

def make_pjrt_topology(platform: str, topology_name='', **kwargs):
_discover_and_register_pjrt_plugins()
actual_platform = canonicalize_platform(platform)
if not platform in expand_platform_alias(platform):
Copy link
Collaborator

Choose a reason for hiding this comment

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

if platform not in expand_platform_alias(platform):. Avoid using if not ... in ... pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@jaro-sevcik jaro-sevcik force-pushed the disallow-platform-alias-for-get-topology-desc branch from fd41528 to 288cffa Compare November 27, 2024 18:25
@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants