Skip to content

Dynamic Shapes #2442

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 1 commit into from
Closed

Dynamic Shapes #2442

wants to merge 1 commit into from

Conversation

mcr229
Copy link
Contributor

@mcr229 mcr229 commented Mar 14, 2024

Summary:
Only need to look at tester.py file for the tester changes.

Change is from .run_method().compare_outputs() to .run_method_and_compare_outputs()

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes) to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai

Differential Revision: D54650121

Copy link

pytorch-bot bot commented Mar 14, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 0d9f2bd with merge base ce344bc (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Mar 14, 2024
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Mar 15, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from c388513 to 62cef72 Compare March 15, 2024 00:25
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Mar 15, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch 2 times, most recently from 42fee96 to 2470cbc Compare March 15, 2024 21:53
mcr229 added a commit to mcr229/executorch that referenced this pull request Mar 15, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai

Differential Revision: D54650121
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Mar 16, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 2470cbc to 72e7885 Compare March 16, 2024 01:40
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Apr 5, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 72e7885 to 9753a84 Compare April 5, 2024 20:38
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Apr 10, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 9753a84 to 4a801e6 Compare April 10, 2024 22:22
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Apr 10, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 4a801e6 to 8c49122 Compare April 10, 2024 22:29
mcr229 added a commit to mcr229/executorch that referenced this pull request Apr 11, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 8c49122 to 6890a10 Compare April 11, 2024 17:24
@facebook-github-bot
Copy link
Contributor

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

mcr229 added a commit to mcr229/executorch that referenced this pull request Apr 11, 2024
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@facebook-github-bot
Copy link
Contributor

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

@mcr229 mcr229 force-pushed the export-D54650121 branch from 6890a10 to 110fd07 Compare April 11, 2024 21:27
Summary:
Pull Request resolved: pytorch#2442

Only need to look at tester.py file for the tester changes.

Change is from `.run_method().compare_outputs() ` to `.run_method_and_compare_outputs()`

now if Tester is initialized with dynamic inputs, we will generate random dynamic inputs (according to the specification of the dynamic shapes)  to run on the model. This allows us to test that the inputs fed into the model can be dynamic.

We ad a num_runs to run_method_and_compare_outputs so that we can choose to run a number of different dynamic inputs with dynamic shapes.

Reviewed By: digantdesai, kirklandsign

Differential Revision: D54650121
@mcr229 mcr229 force-pushed the export-D54650121 branch from 110fd07 to 0d9f2bd Compare April 11, 2024 21:34
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 65be9b4.

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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants