提交 eb72b6f4 编写于 作者: L liu zhengxi 提交者: GitHub

fix_typo in set_cpu_math_library_num_threads, test=develop (#2642)

上级 e2e1b11b
...@@ -153,7 +153,7 @@ class LITE_API CxxConfig : public ConfigBase { ...@@ -153,7 +153,7 @@ class LITE_API CxxConfig : public ConfigBase {
std::string param_file() const { return param_file_; } std::string param_file() const { return param_file_; }
bool model_from_memory() const { return model_from_memory_; } bool model_from_memory() const { return model_from_memory_; }
void set_cpu_math_library_math_threads(int threads) { void set_cpu_math_library_num_threads(int threads) {
cpu_math_library_math_threads_ = threads; cpu_math_library_math_threads_ = threads;
} }
int cpu_math_library_num_threads() const { int cpu_math_library_num_threads() const {
......
...@@ -30,7 +30,7 @@ TEST(Step_rnn, test_step_rnn_lite_x86) { ...@@ -30,7 +30,7 @@ TEST(Step_rnn, test_step_rnn_lite_x86) {
std::string model_dir = FLAGS_model_dir; std::string model_dir = FLAGS_model_dir;
lite_api::CxxConfig config; lite_api::CxxConfig config;
config.set_model_dir(model_dir); config.set_model_dir(model_dir);
config.set_cpu_math_library_math_threads(10); config.set_cpu_math_library_num_threads(1);
config.set_valid_places({lite_api::Place{TARGET(kX86), PRECISION(kInt64)}, config.set_valid_places({lite_api::Place{TARGET(kX86), PRECISION(kInt64)},
lite_api::Place{TARGET(kX86), PRECISION(kFloat)}, lite_api::Place{TARGET(kX86), PRECISION(kFloat)},
lite_api::Place{TARGET(kHost), PRECISION(kFloat)}}); lite_api::Place{TARGET(kHost), PRECISION(kFloat)}});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册