Skip to content

Bump torchfix from 0.1.1 to 0.5.0 #3220

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

Closed
wants to merge 3 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 22, 2024

Bumps torchfix from 0.1.1 to 0.5.0.

Release notes

Sourced from torchfix's releases.

TorchFix 0.5.0

  • Added rule TOR203 to replace 'import torchvision.models as models' with 'from torchvision import models'
  • Added rules TOR104 and TOR105 for calling and importing non-public PyTorch functions that have known public aliases
  • Added rules TOR004 and TOR103 for importing removed and deprecated functions (in addition to the existing rules for calling those functions)
  • Fixed loading for deprecated symbols config in zipped deployments
  • Done several smaller bug fixes and refactorings

TorchFix 0.4.0

  • Improvements for the standalone torchfix command:
    • Added --version flag
    • --select flag now accepts specific rules, not just ALL
    • Fixed excessive debug output on MacOS
  • Added PyTorch-internal rule TOR901
  • TorchFix explicitly requires at least Python 3.9 now
  • Small clean-ups and bugfixes

TorchFix 0.3.0

  • Added rule TOR003 about explicitly passing use_reentrant to torch.utils.checkpoint
  • Added torch.nn.utils.weight_norm to the list of deprecated functions flagged by TOR101
  • Updated README with TOR0 rules description

TorchFix 0.2.1: first release for pytorch-labs/torchfix repo

This is the first release for pytorch-labs/torchfix repo, with the only differences from TorchFix 0.2.0 on PyPI are files related to repo maintenance and project metadata.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [torchfix](https://github.com/pytorch-labs/torchfix) from 0.1.1 to 0.5.0.
- [Release notes](https://github.com/pytorch-labs/torchfix/releases)
- [Commits](https://github.com/pytorch-labs/torchfix/commits/v0.5.0)

---
updated-dependencies:
- dependency-name: torchfix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 22, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 22, 2024

Dependabot tried to add @pytorch/team-executorch as a reviewer to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/pytorch/executorch/pulls/3220/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the pytorch/executorch repository. // See: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request

Copy link

pytorch-bot bot commented Apr 22, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3220

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 9b0874b with merge base dbf90c2 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2024
@huydhn huydhn force-pushed the dependabot/pip/torchfix-0.5.0 branch from 797199c to 1a3e1f5 Compare April 23, 2024 00:37
@huydhn huydhn requested review from guangy10 and kit1980 April 23, 2024 00:37
@facebook-github-bot
Copy link
Contributor

@huydhn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@huydhn
Copy link
Contributor

huydhn commented Apr 23, 2024

There are some additional linter fixes after the upgrade.

@@ -109,7 +109,9 @@ def SSD300VGG16(pretrained_weight_model):
from model import SSD300

model = SSD300(n_classes=21)
checkpoint = torch.load(pretrained_weight_model, map_location="cpu")
checkpoint = torch.load(
pretrained_weight_model, map_location="cpu", weights_only=False
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't weights_only=True work here and in other places?

weights_only=False is a potential security issue.
I guess it's fine to don't cause any compatibility problems right now, but maybe add a TODO to investigate later?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let me add them as TODO then, these are examples from different partners, so I guess setting weights_only to True would better be reviewed separately.

@facebook-github-bot
Copy link
Contributor

@huydhn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 23, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@facebook-github-bot
Copy link
Contributor

@huydhn merged this pull request in 0afb73d.

@dependabot dependabot bot deleted the dependabot/pip/torchfix-0.5.0 branch April 23, 2024 04:36
@mergennachin mergennachin mentioned this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. dependencies Pull requests that update a dependency file Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants