-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utility files and cleanup configurations
- Loading branch information
Showing
20 changed files
with
167 additions
and
59 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Get Plumber recommendation from a traced pipeline. | ||
Takes as input the 'stats.pb' in the current directory. | ||
""" | ||
|
||
import plumber_analysis.pipeline_optimizer_wrapper | ||
import plumber_analysis.config | ||
|
||
is_fast = False | ||
optimizer = plumber_analysis.pipeline_optimizer_wrapper.step_par_2(is_fast=is_fast) | ||
|
||
experiment_params = optimizer.experiment_params() | ||
performance_params = optimizer.get_performance_parameters() | ||
print("Experimental params:\n{}".format(experiment_params)) | ||
print("Plumber found parameters:\n{}".format(performance_params)) | ||
|
||
dataset = optimizer.instantiate_pipeline() | ||
dataset = plumber_analysis.pipeline_optimizer_wrapper.apply_default_options(dataset, override_presets=True) | ||
ret = plumber_analysis.pipeline_optimizer_wrapper._benchmark_dataset(dataset, time_limit_s=62) | ||
print(ret) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
20 changes: 20 additions & 0 deletions
20
end_to_end/TPU/maskrcnn-preview-TF-tpu-v4-128/get_params.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Get Plumber recommendation from a traced pipeline. | ||
Takes as input the 'stats.pb' in the current directory. | ||
""" | ||
|
||
import plumber_analysis.pipeline_optimizer_wrapper | ||
import plumber_analysis.config | ||
|
||
is_fast = False | ||
optimizer = plumber_analysis.pipeline_optimizer_wrapper.step_par_2(is_fast=is_fast) | ||
|
||
experiment_params = optimizer.experiment_params() | ||
performance_params = optimizer.get_performance_parameters() | ||
print("Experimental params:\n{}".format(experiment_params)) | ||
print("Plumber found parameters:\n{}".format(performance_params)) | ||
|
||
dataset = optimizer.instantiate_pipeline() | ||
dataset = plumber_analysis.pipeline_optimizer_wrapper.apply_default_options(dataset, override_presets=True) | ||
ret = plumber_analysis.pipeline_optimizer_wrapper._benchmark_dataset(dataset, time_limit_s=62) | ||
print(ret) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.