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

Add global boolean for controlling whether to record concrete shapes or not #101043

Closed
wants to merge 1 commit into from

Conversation

davidberard98
Copy link
Contributor

Summary: We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to pytorch/kineto:pytorch_record_concrete_inputs; before, it returns true; after, it returns false.

Note that D45681838 had to add service on the main function. That's because we need to initFacebook in order to use jks.

Differential Revision: D45680162

@pytorch-bot
Copy link

pytorch-bot bot commented May 10, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4f1fcbb:
💚 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: D45680162

Copy link
Member

@aaronenyeshi aaronenyeshi left a comment

Choose a reason for hiding this comment

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

Looks good

davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 10, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

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

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

davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 10, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

fbshipit-source-id: a5d6c07a441e8a1f557f6a6a4814c120a01b0a8a
davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 10, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 10, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 11, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

davidberard98 added a commit to davidberard98/pytorch that referenced this pull request May 11, 2023
…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

…or not (pytorch#101043)

Summary:
Pull Request resolved: pytorch#101043

We don't think the performance impact of recording concrete shapes is significant; but it's good to have a knob for turning it off quickly in case it has a large performance impact.

Test Plan:
Ran D45681838. It prints the state of that "concrete inputs" boolean. I ran it before and after canarying a change to `pytorch/kineto:pytorch_record_concrete_inputs`; before, it returns true; after, it returns false.

Note that D45681838 had to add `service` on the main function. That's because we need to `initFacebook` in order to use jks.

Reviewed By: aaronenyeshi

Differential Revision: D45680162

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

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

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 11, 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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants