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 a null check for tracer in the Module::load_method #6298

Closed
wants to merge 1 commit into from

Conversation

Olivia-liu
Copy link
Contributor

Summary:
When testing the LLM Manual, I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a tracer parameter was added to Module::load_method. It overrides the event_tracer_.get(), resulting tracer being null program_->load_method is called and thus etdump is not generated.

This diff just adds a check: it tracer is not null, use it; otherwise use the tracer get from class member event_tracer_.

Differential Revision: D64481537

Copy link

pytorch-bot bot commented Oct 16, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit e8c8ce9 with merge base 3b8b28b (image):
💚 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 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 Oct 16, 2024
@facebook-github-bot
Copy link
Contributor

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

facebook-github-bot pushed a commit that referenced this pull request Oct 16, 2024
Summary:

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null `program_->load_method` is called and thus etdump is not generated. 

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Differential Revision: D64481537
facebook-github-bot pushed a commit that referenced this pull request Oct 16, 2024
Summary:

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null and passed to `program_->load_method`, thus etdump is not generated. 

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Reviewed By: tarun292, Gasoonjia, dbort

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

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

facebook-github-bot pushed a commit that referenced this pull request Oct 16, 2024
Summary:

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null and passed to `program_->load_method`, thus etdump is not generated. 

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Reviewed By: tarun292, Gasoonjia, dbort

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

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

Summary:

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null and passed to `program_->load_method`, thus etdump is not generated. 

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Reviewed By: tarun292, Gasoonjia, dbort

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ad0e5e8.

@Olivia-liu
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.4 -c docs

pytorchbot pushed a commit that referenced this pull request Oct 17, 2024
#6298)

Summary:
Pull Request resolved: #6298

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null and passed to `program_->load_method`, thus etdump is not generated.

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Reviewed By: tarun292, Gasoonjia, dbort

Differential Revision: D64481537

fbshipit-source-id: 86cecbaea2b7293be28d60f4147deb31535fa6ea
(cherry picked from commit ad0e5e8)
@pytorchbot
Copy link
Collaborator

Cherry picking #6298

The cherry pick PR is at #6319 The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

dvorjackz pushed a commit that referenced this pull request Oct 17, 2024
Add a null check for `event_tracer` param in the `Module::load_method` (#6298)

Summary:
Pull Request resolved: #6298

When testing the [LLM Manual](https://pytorch.org/executorch/0.4/llm/getting-started.html#profiling-and-debugging), I found etdump is not generated :(. It seems to be a bug introduced in D62520386 when a `tracer` parameter was added to `Module::load_method`. It overrides the `event_tracer_.get()`, resulting `tracer` being null and passed to `program_->load_method`, thus etdump is not generated.

This diff just adds a check: it `tracer` is not null, use it; otherwise use the tracer get from class member event_tracer_.

Reviewed By: tarun292, Gasoonjia, dbort

Differential Revision: D64481537

fbshipit-source-id: 86cecbaea2b7293be28d60f4147deb31535fa6ea
(cherry picked from commit ad0e5e8)

Co-authored-by: Olivia Liu <olivialpx@meta.com>
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.

5 participants