-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[PyTorch Edge][tracing-based] Unify tracer between internal and external #64152
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 55705d3 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
This was referenced Aug 30, 2021
cccclai
pushed a commit
that referenced
this pull request
Aug 30, 2021
Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! ghstack-source-id: 136951291 Pull Request resolved: #64152
…l and external" Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
…l and external" Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
…l and external" Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Aug 30, 2021
Pull Request resolved: #64152 ghstack-source-id: 136954259 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Aug 30, 2021
Pull Request resolved: #64152 ghstack-source-id: 136957213 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Aug 30, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 137009462 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Sep 6, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 137009462 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
maglimedia
pushed a commit
to gtedemo/demo-codespace-pytorch
that referenced
this pull request
Oct 9, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: pytorch/pytorch#64152 ghstack-source-id: 139900294 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
maglimedia
pushed a commit
to gtedemo/demo-codespace-pytorch
that referenced
this pull request
Oct 9, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: pytorch/pytorch#64152 ghstack-source-id: 139146459 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 10, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140206623 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 11, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140269696 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 13, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140522807 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 14, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140563354 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 14, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140662931 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
…l and external" As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)! Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224) [ghstack-poisoned]
cccclai
pushed a commit
that referenced
this pull request
Oct 15, 2021
As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140692467 Differential Revision: [D30632224](https://our.internmc.facebook.com/intern/diff/D30632224/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D30632224/)!
This pull request has been merged in 76efbcc. |
wconstab
pushed a commit
that referenced
this pull request
Oct 20, 2021
…nal (#64152) Summary: As title, introduce the file `TracerRunner` shared by internal/external tracer and the main function is ``` TracerResult trace_run(const std::string& input_module_path); ``` which basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is 1. the dependency on `<yaml-cpp/yaml.h>`. 2. the output yaml file from internal tracer includes `model_version` and `model_asset`. These are only needed for internal. Pull Request resolved: #64152 ghstack-source-id: 140692467 Test Plan: ``` ./build/bin/model_tracer --model_input_path "/Users/chenlai/Documents/pytorch/tracing/deeplabv3_scripted_with_bundled_input.ptl" --build_yaml_path "/Users/chenlai/Documents/pytorch/tracing/tmp.yaml" ``` ``` ./fbcode/caffe2/fb/model_tracer/run_model_with_bundled_inputs.sh ~/local/notebooks/prod_models/deeplabv3_scripted_with_bundled_input.ptl ``` have the same operator output selected_operators.yaml (P460296279) selected_mobile_ops.h (P460296258) Reviewed By: dhruvbird Differential Revision: D30632224 fbshipit-source-id: eb0321dbc0f1fcf6d2e05384695eebb59ac04f8c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
As title, introduce the file
TracerRunner
shared by internal/external tracer and the main function iswhich basically takes the path to model file and generate the trace result. The main difference between external tracer and internal tracer is
<yaml-cpp/yaml.h>
.model_version
andmodel_asset
. These are only needed for internal.Differential Revision: D30632224
NOTE FOR REVIEWERS: This PR has internal Facebook specific changes or comments, please review them on Phabricator!
Differential Revision: D30632224