提交 12cee05e 编写于 作者: W wangjiawei04

fix cube-api codeformat test=serving

上级 6d9d2e1e
...@@ -153,7 +153,6 @@ int Resource::initialize(const std::string& path, const std::string& file) { ...@@ -153,7 +153,6 @@ int Resource::initialize(const std::string& path, const std::string& file) {
this->cube_config_fullpath = cube_config_fullpath; this->cube_config_fullpath = cube_config_fullpath;
} }
THREAD_SETSPECIFIC(_tls_bspec_key, NULL); THREAD_SETSPECIFIC(_tls_bspec_key, NULL);
return 0; return 0;
} }
...@@ -161,7 +160,6 @@ int Resource::initialize(const std::string& path, const std::string& file) { ...@@ -161,7 +160,6 @@ int Resource::initialize(const std::string& path, const std::string& file) {
// model config // model config
int Resource::general_model_initialize(const std::string& path, int Resource::general_model_initialize(const std::string& path,
const std::string& file) { const std::string& file) {
// TODO: add serving dist op detection, if true, add cube instance init.
if (this->cube_config_fullpath.size() != 0) { if (this->cube_config_fullpath.size() != 0) {
LOG(INFO) << "init cube by config file : " << this->cube_config_fullpath; LOG(INFO) << "init cube by config file : " << this->cube_config_fullpath;
rec::mcube::CubeAPI* cube = rec::mcube::CubeAPI::instance(); rec::mcube::CubeAPI* cube = rec::mcube::CubeAPI::instance();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册