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

Merge pull request !5867 from hangq/primitive
This commit is contained in:
mindspore-ci-bot 2020-09-07 23:19:51 +08:00 committed by Gitee
commit 6138b75518
2 changed files with 4 additions and 4 deletions

View File

@ -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}
}

View File

@ -57,7 +57,7 @@ class OptimizeModule {
}
#endif
#endif
if ((!support_optimize_ops) && (!support_fp16)) {
if (!(support_optimize_ops && support_fp16)) {
return;
}
#ifndef _WIN32