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

Remove tensorboard mapping from our default mapping (Cherry-pick of #19673) #19699

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

WorkerPants
Copy link
Member

torch.utils.tensorboard imports tensorboard (or dies trying). The original intent is "if a file imports it, it should receive a dependency on tensorboard". Unfortunately the actual behavior is that only tensorboard is inferred (and not torch). Worse, an import from tensorboard is now ambiguous (because it's missing from the value).

So we'll remove it and cherry-pick to 2.17.x (when it was introduced). Later we can fix the underlying issue of being able to model an import mapping to multiple packages.

See #19672

`torch.utils.tensorboard` imports `tensorboard` (or dies trying). The
original intent is "if a file imports it, it should receive a dependency
on `tensorboard`". Unfortunately the actual behavior is that _only_
tensorboard is inferred (and not `torch`). Worse, an import from
`tensorboard` is now ambiguous (because it's missing from the value).

So we'll remove it and cherry-pick to 2.17.x (when it was introduced).
Later we can fix the underlying issue of being able to model an import
mapping to multiple packages.

See #19672
@WorkerPants WorkerPants added this to the 2.18.x milestone Aug 29, 2023
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label Aug 29, 2023
@huonw huonw merged commit a05f92d into 2.18.x Aug 29, 2023
@huonw huonw deleted the cherry-pick-19673-to-2.18.x branch August 29, 2023 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants