Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
7bb7fed8
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7bb7fed8
编写于
12月 02, 2016
作者:
L
Liu Yiqun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify the CMakelist.txt and fix typos.
上级
46ef2bc6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
16 deletion
+13
-16
CMakeLists.txt
CMakeLists.txt
+4
-9
paddle/scripts/travis/build_and_test.sh
paddle/scripts/travis/build_and_test.sh
+1
-1
paddle/scripts/travis/build_submodules.sh
paddle/scripts/travis/build_submodules.sh
+2
-0
python/paddle/trainer_config_helpers/layers.py
python/paddle/trainer_config_helpers/layers.py
+6
-6
未找到文件。
CMakeLists.txt
浏览文件 @
7bb7fed8
...
...
@@ -77,15 +77,10 @@ find_package(Git REQUIRED)
include
(
version
)
add_definitions
(
-DPADDLE_VERSION=\"
${
PADDLE_VERSION
}
\"
)
if
(
NOT WITH_GPU
)
add_definitions
(
-DPADDLE_ONLY_CPU
)
add_definitions
(
-DHPPL_STUB_FUNC
)
if
(
WITH_DSO
)
add_definitions
(
-DPADDLE_USE_DSO
)
endif
(
WITH_DSO
)
list
(
APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cu
)
else
()
if
(
${
CUDA_VERSION_MAJOR
}
GREATER 6
)
...
...
@@ -107,15 +102,15 @@ else()
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-Xcompiler
${
SSE3_FLAG
}
"
)
endif
(
WITH_AVX
)
if
(
WITH_DSO
)
add_definitions
(
-DPADDLE_USE_DSO
)
endif
(
WITH_DSO
)
# Include cuda and cudnn
include_directories
(
${
CUDNN_INCLUDE_DIR
}
)
include_directories
(
${
CUDA_TOOLKIT_INCLUDE
}
)
endif
(
NOT WITH_GPU
)
if
(
WITH_DSO
)
add_definitions
(
-DPADDLE_USE_DSO
)
endif
(
WITH_DSO
)
if
(
WITH_DOUBLE
)
add_definitions
(
-DPADDLE_TYPE_DOUBLE
)
set
(
ACCURACY double
)
...
...
paddle/scripts/travis/build_and_test.sh
浏览文件 @
7bb7fed8
#!/bin/bash
./submodules.sh
./
build_
submodules.sh
source
./common.sh
CMAKE_EXTRA
=
""
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
...
...
paddle/scripts/travis/submodules.sh
→
paddle/scripts/travis/
build_
submodules.sh
浏览文件 @
7bb7fed8
#!/bin/bash
set
-e
WORK_DIR
=
$PWD
PROJ_ROOT
=
$(
git rev-parse
--show-cdup
)
SUBMODULES
=
$(
grep
path
${
PROJ_ROOT
}
.gitmodules |
sed
's/^.*path = //'
)
...
...
@@ -16,3 +17,4 @@ do
;;
esac
done
cd
$WORK_DIR
python/paddle/trainer_config_helpers/layers.py
浏览文件 @
7bb7fed8
...
...
@@ -1874,7 +1874,7 @@ def img_conv_layer(input,
param_attr
.
attr
[
"initial_std"
]
=
init_w
param_attr
.
attr
[
"initial_strategy"
]
=
0
param_attr
.
attr
[
"initial_smart"
]
=
False
if
layer_type
:
if
trans
:
assert
layer_type
in
[
"exconvt"
]
...
...
@@ -4125,11 +4125,11 @@ def warp_ctc_layer(input,
Note:
- Let num_classes represent the category number. Considering the 'blank'
label needed by CTC, you need to use (num_classes + 1) as the input
size.
Thus, the size of both warp_ctc_layer and 'input' layer should be set to
num_classes + 1.
- You can set 'blank' to
[0, num_classes - 1], which should be consistent
as that used in your labels.
label needed by CTC, you need to use (num_classes + 1) as the input
size. Thus, the size of both warp_ctc_layer and 'input' layer should
be set to
num_classes + 1.
- You can set 'blank' to
any value ranged in [0, num_classes], which
should be consistent
as that used in your labels.
- As a native 'softmax' activation is interated to the warp-ctc library,
'linear' activation is expected instead in the 'input' layer.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录