Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
c0019508
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c0019508
编写于
7月 24, 2018
作者:
S
smilejames
提交者:
GitHub
7月 24, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #629 from codeWorm2015/develop
fix
#628
modify ios build cmake tool chain
上级
514e437a
5e83fe1d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
5 deletion
+3
-5
src/operators/op_param.h
src/operators/op_param.h
+1
-1
tools/build.sh
tools/build.sh
+1
-4
tools/ios-cmake/ios.toolchain.cmake
tools/ios-cmake/ios.toolchain.cmake
+1
-0
未找到文件。
src/operators/op_param.h
浏览文件 @
c0019508
...
...
@@ -993,7 +993,7 @@ class FusionConvAddBNReluParam : public OpParam {
input_variance_
=
InputVarianceFrom
<
LoDTensor
>
(
inputs
,
scope
);
epsilon_
=
GetAttr
<
float
>
(
"epsilon"
,
attrs
);
momentum_
=
GetAttr
<
float
>
(
"momentum"
,
attrs
);
is_test_
=
GetAttr
<
bool
>
(
"is_test"
,
attrs
);
//
is_test_ = GetAttr<bool>("is_test", attrs);
}
Tensor
*
Bias
()
const
{
return
bias_
;
}
...
...
tools/build.sh
浏览文件 @
c0019508
...
...
@@ -93,10 +93,7 @@ build_for_ios() {
# rm -rf "../build"
PLATFORM
=
"ios"
MODE
=
"Release"
# IOS_ARCH="armv7"
# IOS_ARCH="armv7s"
IOS_ARCH
=
"arm64"
# Users could choose "armv7" or "armv7s" platforms.
BUILD_DIR
=
../build/release/
"
${
PLATFORM
}
"
/
"
${
IOS_ARCH
}
"
BUILD_DIR
=
../build/release/
"
${
PLATFORM
}
"
/
TOOLCHAIN_FILE
=
"./tools/ios-cmake/ios.toolchain.cmake"
mkdir
-p
"
${
BUILD_DIR
}
"
if
[
$#
-eq
1
]
;
then
...
...
tools/ios-cmake/ios.toolchain.cmake
浏览文件 @
c0019508
...
...
@@ -34,6 +34,7 @@ set (CMAKE_SYSTEM_VERSION 1)
set
(
UNIX True
)
set
(
APPLE True
)
set
(
IOS True
)
set
(
IOS_ARCH armv7 armv7s arm64
)
# Required as of cmake 2.8.10
set
(
CMAKE_OSX_DEPLOYMENT_TARGET
""
CACHE STRING
"Force unset of the deployment target for iOS"
FORCE
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录