!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:
commit
6138b75518
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue