Skip to content

[package] make importer a little more obscure#51676

Closed
suo wants to merge 6 commits intogh/suo/392/basefrom
gh/suo/392/head
Closed

[package] make importer a little more obscure#51676
suo wants to merge 6 commits intogh/suo/392/basefrom
gh/suo/392/head

Conversation

@suo
Copy link
Copy Markdown
Member

@suo suo commented Feb 3, 2021

Stack from ghstack:

We offer the ability to access the importer from within packaged modules by doing
import resources. This behavior is nice (and more powerful than the
importlib resources API), but I think resources is too common a name
(pip has a package for it)

Change to import torch_package_importer but open to bikeshedding

Differential Revision: D26620314

We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

[ghstack-poisoned]
suo added a commit that referenced this pull request Feb 3, 2021
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

ghstack-source-id: f3de119
Pull Request resolved: #51676
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Feb 3, 2021

💊 CI failures summary and remediations

As of commit 4b6fe4b (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-scanned failure(s)

1 failure not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test1 Run tests 🔁 rerun

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@suo suo requested a review from zdevito February 3, 2021 23:07
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

[ghstack-poisoned]
suo added a commit that referenced this pull request Feb 23, 2021
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

ghstack-source-id: da7f93b
Pull Request resolved: #51676
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Differential Revision: [D26620314](https://our.internmc.facebook.com/intern/diff/D26620314)

[ghstack-poisoned]
suo added a commit that referenced this pull request Mar 2, 2021
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

ghstack-source-id: 75ba56b
Pull Request resolved: #51676
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Differential Revision: [D26620314](https://our.internmc.facebook.com/intern/diff/D26620314)

[ghstack-poisoned]
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Differential Revision: [D26620314](https://our.internmc.facebook.com/intern/diff/D26620314)

[ghstack-poisoned]
suo added a commit that referenced this pull request Mar 10, 2021
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

ghstack-source-id: d21913d
Pull Request resolved: #51676
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Differential Revision: [D26620314](https://our.internmc.facebook.com/intern/diff/D26620314)

[ghstack-poisoned]
suo added a commit that referenced this pull request Mar 10, 2021
We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

ghstack-source-id: cf4d82c
Pull Request resolved: #51676
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@suo merged this pull request in 17bc70e.

@facebook-github-bot facebook-github-bot deleted the gh/suo/392/head branch March 14, 2021 14:14
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary:
Pull Request resolved: pytorch#51676

We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Test Plan: Imported from OSS

Reviewed By: jamesr66a

Differential Revision: D26620314

Pulled By: suo

fbshipit-source-id: 0942c99f02c0f55f5f3a1b2566961018b796bdd4
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#51676

We offer the ability to access the importer from within packaged modules by doing
`import resources`. This behavior is nice (and more powerful than the
importlib resources API), but I think `resources` is too common a name
(pip has a package for it)

Change to `import torch_package_importer` but open to bikeshedding

Test Plan: Imported from OSS

Reviewed By: jamesr66a

Differential Revision: D26620314

Pulled By: suo

fbshipit-source-id: 0942c99f02c0f55f5f3a1b2566961018b796bdd4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants