Fix misspelling
This commit is contained in:
parent
277fa1bbd1
commit
c55943eb30
@ -334,7 +334,7 @@ void BenchmarkPerformanceOptions::Run() {
|
|||||||
// profiling listener etc. in each Run() invoke because such listeners may be
|
// profiling listener etc. in each Run() invoke because such listeners may be
|
||||||
// reset and become invalid in the next Run(). As a result, we record the
|
// reset and become invalid in the next Run(). As a result, we record the
|
||||||
// number of externally-added listeners here to prevent they're cleared later.
|
// number of externally-added listeners here to prevent they're cleared later.
|
||||||
const int num_external_listners = single_option_run_->NumListeners();
|
const int num_external_listeners = single_option_run_->NumListeners();
|
||||||
|
|
||||||
// Now perform all runs, each with different performance-affecting parameters.
|
// Now perform all runs, each with different performance-affecting parameters.
|
||||||
for (const auto& run_params : all_run_params_) {
|
for (const auto& run_params : all_run_params_) {
|
||||||
@ -349,7 +349,7 @@ void BenchmarkPerformanceOptions::Run() {
|
|||||||
|
|
||||||
// Clear internally created listeners before each run but keep externally
|
// Clear internally created listeners before each run but keep externally
|
||||||
// created ones.
|
// created ones.
|
||||||
single_option_run_->RemoveListeners(num_external_listners);
|
single_option_run_->RemoveListeners(num_external_listeners);
|
||||||
|
|
||||||
all_run_stats_->MarkBenchmarkStart(*single_option_run_params_);
|
all_run_stats_->MarkBenchmarkStart(*single_option_run_params_);
|
||||||
single_option_run_->Run();
|
single_option_run_->Run();
|
||||||
|
@ -119,7 +119,7 @@ std::vector<Flag> ExternalDelegateProvider::CreateFlags(
|
|||||||
"The library path for the underlying external."),
|
"The library path for the underlying external."),
|
||||||
CreateFlag<std::string>(
|
CreateFlag<std::string>(
|
||||||
"external_delegate_options", params,
|
"external_delegate_options", params,
|
||||||
"Comma-seperated options to be passed to the external delegate")};
|
"Comma-separated options to be passed to the external delegate")};
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class DelegateProviders {
|
|||||||
DelegateProviders();
|
DelegateProviders();
|
||||||
|
|
||||||
// Initialize delegate-related parameters from commandline arguments and
|
// Initialize delegate-related parameters from commandline arguments and
|
||||||
// returns true if sucessful.
|
// returns true if successful.
|
||||||
bool InitFromCmdlineArgs(int* argc, const char** argv);
|
bool InitFromCmdlineArgs(int* argc, const char** argv);
|
||||||
|
|
||||||
// Get all parameters from all registered delegate providers.
|
// Get all parameters from all registered delegate providers.
|
||||||
|
@ -66,7 +66,7 @@ TEST(EvaluationDelegateProviderTest, GetAllParamsWithTfliteInferenceParams) {
|
|||||||
TfliteInferenceParams params;
|
TfliteInferenceParams params;
|
||||||
params.set_delegate(TfliteInferenceParams::NONE);
|
params.set_delegate(TfliteInferenceParams::NONE);
|
||||||
params.set_num_threads(4);
|
params.set_num_threads(4);
|
||||||
// The same-meaning parameter in TfliteInferenceParams takes precendence.
|
// The same-meaning parameter in TfliteInferenceParams takes precedence.
|
||||||
tools::ToolParams tool_params = providers.GetAllParams(params);
|
tools::ToolParams tool_params = providers.GetAllParams(params);
|
||||||
EXPECT_EQ(4, tool_params.Get<int>("num_threads"));
|
EXPECT_EQ(4, tool_params.Get<int>("num_threads"));
|
||||||
EXPECT_EQ(1, argc);
|
EXPECT_EQ(1, argc);
|
||||||
|
@ -246,7 +246,7 @@ BENCHMARK_LIB_SRCS := $(filter-out \
|
|||||||
$(BENCHMARK_ALL_SRCS))
|
$(BENCHMARK_ALL_SRCS))
|
||||||
|
|
||||||
# These target-specific makefiles should modify or replace options like
|
# These target-specific makefiles should modify or replace options like
|
||||||
# CXXFLAGS or LIBS to work for a specific targetted architecture. All logic
|
# CXXFLAGS or LIBS to work for a specific targeted architecture. All logic
|
||||||
# based on platforms or architectures should happen within these files, to
|
# based on platforms or architectures should happen within these files, to
|
||||||
# keep this main makefile focused on the sources and dependencies.
|
# keep this main makefile focused on the sources and dependencies.
|
||||||
include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)
|
include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)
|
||||||
|
@ -86,7 +86,7 @@ struct OperatorProperty {
|
|||||||
bool restrict_same_input_output_scale = false;
|
bool restrict_same_input_output_scale = false;
|
||||||
|
|
||||||
// Use same min of min and max of max for each group.
|
// Use same min of min and max of max for each group.
|
||||||
// Incompatable with restrict_same_input_output_scale and restricted_value.
|
// Incompatible with restrict_same_input_output_scale and restricted_value.
|
||||||
// TODO(jianlijianli): make it compatible with other restrictions when there
|
// TODO(jianlijianli): make it compatible with other restrictions when there
|
||||||
// is a use case.
|
// is a use case.
|
||||||
std::vector<std::vector<int>> restrict_scale = {};
|
std::vector<std::vector<int>> restrict_scale = {};
|
||||||
|
@ -74,6 +74,6 @@ def modify_model_interface(input_file, output_file, input_type, output_type):
|
|||||||
# Throw an exception if the return status is an error.
|
# Throw an exception if the return status is an error.
|
||||||
if status != 0:
|
if status != 0:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
'Error occured when trying to modify the model input type from float '
|
'Error occurred when trying to modify the model input type from float '
|
||||||
'to {input_type} and output type from float to {output_type}.'.format(
|
'to {input_type} and output type from float to {output_type}.'.format(
|
||||||
input_type=input_type, output_type=output_type))
|
input_type=input_type, output_type=output_type))
|
||||||
|
@ -110,7 +110,7 @@ int GetBuiltinOperatorVersion(const OpSignature& op_sig) {
|
|||||||
if (op_sig.input_types.size() == 2) {
|
if (op_sig.input_types.size() == 2) {
|
||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
// `keep_num_dims` is supported at verison 5.
|
// `keep_num_dims` is supported at version 5.
|
||||||
if (op_sig.options.fully_connected.keep_num_dims) {
|
if (op_sig.options.fully_connected.keep_num_dims) {
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user