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

[Reland] Add sym_size/stride/numel/storage_offset to native_function.yaml #103107

Closed
wants to merge 1 commit into from

Conversation

SherlockNoMad
Copy link
Contributor

Differential Revision: D46459100

@pytorch-bot pytorch-bot bot added the release notes: jit release notes category label Jun 6, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 6, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6064f49:
💚 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
Copy link
Contributor

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

Copy link
Contributor

@angelayi angelayi left a comment

Choose a reason for hiding this comment

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

stamping based on previous land attempts

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 6, 2023
…yaml (pytorch#103107)

Summary: Pull Request resolved: pytorch#103107

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

fbshipit-source-id: d0ae0ba9b4649cdbe4b929165483ce200af21083
@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@facebook-github-bot
Copy link
Contributor

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

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 6, 2023
…yaml (pytorch#103107)

Summary: Pull Request resolved: pytorch#103107

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

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

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

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 7, 2023
…yaml (pytorch#103107)

Summary:
Pull Request resolved: pytorch#103107

bypass-github-export-checks

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

fbshipit-source-id: 4a6812c4f574823f48b94b47dab236427721b8bc
@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@facebook-github-bot
Copy link
Contributor

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

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 8, 2023
…yaml (pytorch#103107)

Summary:
Pull Request resolved: pytorch#103107

bypass-github-export-checks

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

fbshipit-source-id: 09c3fbe0dd04db24103245eaba1fd65a8a079afa
@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@facebook-github-bot
Copy link
Contributor

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

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 8, 2023
…yaml (pytorch#103107)

Summary:
Pull Request resolved: pytorch#103107

bypass-github-export-checks

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

fbshipit-source-id: 09c3fbe0dd04db24103245eaba1fd65a8a079afa
@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 8, 2023
…yaml (pytorch#103107)

Summary:
Pull Request resolved: pytorch#103107

bypass-github-export-checks

Test Plan: sherlock :)

Reviewed By: angelayi

Differential Revision: D46459100

fbshipit-source-id: 09c3fbe0dd04db24103245eaba1fd65a8a079afa
@facebook-github-bot
Copy link
Contributor

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

SherlockNoMad added a commit to SherlockNoMad/pytorch that referenced this pull request Jun 8, 2023
…yaml (pytorch#103107)

Summary: Pull Request resolved: pytorch#103107

Reviewed By: angelayi

Differential Revision: D46459100

Pulled By: SherlockNoMad

fbshipit-source-id: 33c0de73253e343b4b5a315510879c2aa0508b32
@facebook-github-bot
Copy link
Contributor

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

…yaml (pytorch#103107)

Summary: Pull Request resolved: pytorch#103107

Reviewed By: angelayi

Differential Revision: D46459100

Pulled By: SherlockNoMad

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

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

angelayi added a commit that referenced this pull request Jun 10, 2023
* Serialized range constraints and inline constraints into symbols represented as strings
* These symbols are then reconstructed in the deserialize_sym_int/bool functions by adding them to the shape env along with the ranges.
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally takes in a shape env and map of symbols to names.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 10, 2023
* Serialized range constraints and inline constraints into symbols represented as strings
* These symbols are then reconstructed in the deserialize_sym_int/bool functions by adding them to the shape env along with the ranges.
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally takes in a shape env and map of symbols to names.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 10, 2023
* Serialized range constraints and inline constraints into symbols represented as strings
* These symbols are then reconstructed in the deserialize_sym_int/bool functions by adding them to the shape env along with the ranges.
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally takes in a shape env and map of symbols to names.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 10, 2023
* Serialized range constraints and inline constraints into symbols represented as strings
* These symbols are then reconstructed in the deserialize_sym_int/bool functions by adding them to the shape env along with the ranges.
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally takes in a shape env and map of symbols to names.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
@SherlockNoMad
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 12, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Copy link
Contributor

@soulitzer soulitzer left a comment

Choose a reason for hiding this comment

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

stamping for reland

angelayi added a commit that referenced this pull request Jun 12, 2023
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally map of symbol names to range.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 12, 2023
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally map of symbol names to range.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 13, 2023
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally map of symbol names to range.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
angelayi added a commit that referenced this pull request Jun 13, 2023
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally map of symbol names to range.

ReplaceSymSizeOpPass should not be needed after #103107 lands




[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Jun 13, 2023
* Modified the SymInt schema to also store the hint of the SymInt if it is represented as a symbol so that when we reconstruct the SymInt, the hint will also exist on the node.
* GraphModuleDeserializer.deserialize now also optionally map of symbol names to range.

ReplaceSymSizeOpPass should not be needed after #103107 lands

Pull Request resolved: #103273
Approved by: https://github.com/avikchaudhuri, https://github.com/zhxchen17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: jit release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants