Skip to content

Conversation

@PaliC
Copy link
Contributor

@PaliC PaliC commented Aug 2, 2022

Summary:
This change points multipy::runtime to use multipy.package instead of torch.package by copying _deploy.py (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow multipy::runtime to access multipy.package and _deploy.py.

X-link: meta-pytorch/multipy#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

Summary:
This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

X-link: meta-pytorch/multipy#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: 44faa10a8b995b47f257d6fe20d9caa335237c9e
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 2, 2022

🔗 Helpful links

✅ No Failures (7 Pending)

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

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

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

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38337551

Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

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

sounds reasonable, just one nit

def write_to_zip(file_path, strip_file_path, zf):
stripped_file_path = remove_prefix(file_path, strip_file_dir + "/")
def write_to_zip(file_path, strip_file_path, zf, prepend_str=""):
stripped_file_path = prepend_str + remove_prefix(file_path, strip_file_dir + "/")
Copy link
Member

Choose a reason for hiding this comment

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

nit: prefix_path might be a better name for these instead of prepend_str

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

facebook-github-bot pushed a commit to meta-pytorch/multipy that referenced this pull request Aug 3, 2022
Summary:
X-link: pytorch/pytorch#82690

This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

Pull Request resolved: #111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: dec35e0f07efa1c989f6356dd073dfddd12a186e
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2022

Hey @PaliC.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Aug 3, 2022
Summary:
Pull Request resolved: #82690

This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

X-link: meta-pytorch/multipy#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: dec35e0f07efa1c989f6356dd073dfddd12a186e
anirbanr-fb-r2p pushed a commit to anirbanr-fb-r2p/multipy that referenced this pull request Aug 11, 2022
Summary:
X-link: pytorch/pytorch#82690

This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

Pull Request resolved: meta-pytorch#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: dec35e0f07efa1c989f6356dd073dfddd12a186e
anirbanr-fb-r2p pushed a commit to anirbanr-fb-r2p/multipy that referenced this pull request Aug 11, 2022
Use multipy.package in `multipy/runtime` (#82690)

Summary:
X-link: pytorch/pytorch#82690

This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

Pull Request resolved: meta-pytorch#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: dec35e0f07efa1c989f6356dd073dfddd12a186e
anirbanr-fb-r2p pushed a commit to anirbanr-fb-r2p/multipy that referenced this pull request Aug 11, 2022
Use multipy.package in `multipy/runtime` (#82690)

Summary:
X-link: pytorch/pytorch#82690

This change points multipy::runtime to use multipy.package instead of torch.package by copying `_deploy.py` (which is used in order to pass objects in and out of interpreters) into multipy as well as making the neccessary changes to allow `multipy::runtime` to access `multipy.package` and `_deploy.py`.

Pull Request resolved: meta-pytorch#111

Reviewed By: d4l3k

Differential Revision: D38337551

Pulled By: PaliC

fbshipit-source-id: dec35e0f07efa1c989f6356dd073dfddd12a186e
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.

4 participants