!11274 add commit id info in package in mindspore lite

From: @hangangqiang
Reviewed-by: 
Signed-off-by:
pull/11274/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit f679fcf075

@ -78,6 +78,7 @@ IF NOT EXIST "%BUILD_PATH%/mindspore" (
cd %BUILD_PATH%/mindspore
IF "%1%" == "lite" (
(git log -1 | findstr "^commit") > %BUILD_PATH%\.commit_id
cmake -DPLATFORM_ARM64=off -DSUPPORT_TRAIN=off ^
-DENABLE_TOOLS=on -DENABLE_CONVERTER=on -DBUILD_TESTCASES=off ^
-DCMAKE_BUILD_TYPE=Release -DSUPPORT_GPU=off -DBUILD_MINDDATA=off -DOFFLINE_COMPILE=off ^

@ -509,6 +509,11 @@ get_version() {
VERSION_STR=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}
}
write_commit_file() {
COMMIT_STR=$(git log -1 | grep commit)
echo ${COMMIT_STR} > "${BASEPATH}/mindspore/lite/build/.commit_id"
}
build_lite()
{
get_version
@ -541,6 +546,7 @@ build_lite()
fi
mkdir -pv build
cd build
write_commit_file
BUILD_TYPE="Release"
if [[ "${DEBUG_MODE}" == "on" ]]; then
BUILD_TYPE="Debug"

File diff suppressed because it is too large Load Diff

@ -47,7 +47,6 @@ std::pair<bool, FusionEltwiseParameter *> CheckSupportOrCreateParam(
LiteKernel *node, bool create_param = false,
const std::map<lite::Tensor *, FusionEltwiseParameter *> &replace_map = {}) {
MS_ASSERT(node);
MS_ASSERT(param);
PrimitiveType node_type = node->Type();
auto operator_ = static_cast<const EltwiseOperator>(node_type);
auto *op_parameter = reinterpret_cast<OpenCLKernel *>(node)->GetParameter();

Loading…
Cancel
Save