update etdump doc for better clearance#16793
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/16793
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Cancelled Job, 1 Unrelated FailureAs of commit b548e3e with merge base 9f6f828 ( NEW FAILURE - The following job has failed:
CANCELLED JOB - The following job was cancelled. Please retry:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91245299. |
This PR needs a
|
GregoryComer
left a comment
There was a problem hiding this comment.
Thanks for adding this! It's very clear.
|
|
||
| using namespace ::executorch::extension; | ||
|
|
||
| Module module("/path/to/model.pte", Module::LoadMode::MmapUseMlock, std::make_unique<ETDumpGen>()); |
There was a problem hiding this comment.
Tiny nit, feel free to ignore - Mlock mode tends to fail on a lot of hardware, so we should maybe recommend Mmap or File modes. For example, Android limits to 64kb on newer versions.
There was a problem hiding this comment.
thx. Updated to Mmap
Summary: Try to make etdump doc clearer. more details can be found in pytorch#16571. Reviewed By: lucylq, GregoryComer Differential Revision: D91245299
bcc81f9 to
b548e3e
Compare
|
@pytorchbot cherry-pick --onto release/1.1 -c docs |
Cherry picking #16793The cherry pick PR is at #16803 The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
Summary:
Try to make etdump doc clearer.
more details can be found in #16571.
Differential Revision: D91245299