Browse Source

mindspore lite should dlopen liboptimizer.so only when fp16 and sdot are

both supported
tags/v1.0.0
hangq 5 years ago
parent
commit
ebf3f6ce8e
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      mindspore/lite/java/build_aar.sh
  2. +1
    -1
      mindspore/lite/nnacl/optimized_kernel.h

+ 3
- 3
mindspore/lite/java/build_aar.sh 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}
}



+ 1
- 1
mindspore/lite/nnacl/optimized_kernel.h 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


Loading…
Cancel
Save