-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[iOS] Scripts for setting up benchmark projects #28469
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
Conversation
### Summary As described [here](#28405), This PR is the second one that contains scripts for setting up the benchmark projects. ### Test Plan Don't break CI jobs unless they are flaky.
### Summary As described [here](#28405), This PR is the second one that contains scripts for setting up the benchmark projects. ### Test Plan Don't break CI jobs unless they are flaky.
ios/TestApp/benchmark/setup.rb
Outdated
| model_path_src = File.expand_path("./model.pt") | ||
| model_path_dst = File.expand_path("../model.pt") | ||
| if not File.exist?(model_path_src) | ||
| raise "no model can be found!" | ||
| end | ||
| FileUtils.cp(model_path_src, model_path_dst) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need copy model.pt around? seems a bit confusing to have the same file at both "./" and "../".
can we directly use "TestApp/benchmark/model.pt" from the project? or make "trace_model.py" to save to "TestApp/model.pt" directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the model in TestApp/benchmark
### Summary As described [here](#28405), This PR is the second one that contains scripts for setting up the benchmark projects. ### Test Plan Don't break CI jobs unless they are flaky.
Summary: Pull Request resolved: pytorch#28469 ### Summary As described [here](pytorch#28405), This PR is the second one that contains scripts for setting up the benchmark projects. ### Test Plan Don't break CI jobs unless they are flaky. Test Plan: Imported from OSS Differential Revision: D18097248 Pulled By: xta0 fbshipit-source-id: 6f9d1275a07aecae21afd81d5e90a89a75d0270f
Stack from ghstack:
Summary
As described here, This PR is the second one that contains scripts for setting up the benchmark projects.
Test Plan
Don't break CI jobs unless they are flaky.
Differential Revision: D18097248