提交 6138b755 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5867 mindspore lite should dlopen liboptimizer.so only when fp16 and sdot are both supported

Merge pull request !5867 from hangq/primitive
......@@ -5,9 +5,9 @@ BASE_PATH=$(cd "$(dirname $0)"; pwd)
TOP_PATH="${BASE_PATH}/../../.."
get_version() {
VERSION_MAJOR=`grep "#define MS_VERSION_MAJOR" ../include/version.h | tr -dc "[0-9]"`
VERSION_MINOR=`grep "#define MS_VERSION_MINOR" ../include/version.h | tr -dc "[0-9]"`
VERSION_REVISION=`grep "#define MS_VERSION_REVISION" ../include/version.h | tr -dc "[0-9]"`
VERSION_MAJOR=`grep "const int ms_version_major =" ../include/version.h | tr -dc "[0-9]"`
VERSION_MINOR=`grep "const int ms_version_minor =" ../include/version.h | tr -dc "[0-9]"`
VERSION_REVISION=`grep "const int ms_version_revision =" ../include/version.h | tr -dc "[0-9]"`
VERSION_STR=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}
}
......
......@@ -57,7 +57,7 @@ class OptimizeModule {
}
#endif
#endif
if ((!support_optimize_ops) && (!support_fp16)) {
if (!(support_optimize_ops && support_fp16)) {
return;
}
#ifndef _WIN32
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册