Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
a183960b
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a183960b
编写于
5月 03, 2017
作者:
L
Liu Yiqun
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into cmake_protobuf
上级
01bee86d
2cb4a9fb
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
18 addition
and
12 deletion
+18
-12
.pre-commit-config.yaml
.pre-commit-config.yaml
+4
-4
Dockerfile
Dockerfile
+5
-0
cmake/cblas.cmake
cmake/cblas.cmake
+6
-5
python/paddle/v2/dataset/cifar.py
python/paddle/v2/dataset/cifar.py
+2
-2
python/paddle/v2/dataset/mnist.py
python/paddle/v2/dataset/mnist.py
+1
-1
未找到文件。
.pre-commit-config.yaml
浏览文件 @
a183960b
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks.git
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks.git
sha
:
c25201a00e6b0514370501050cf2a8538ac12270
sha
:
v1.0.1
hooks
:
hooks
:
-
id
:
remove-crlf
-
id
:
remove-crlf
files
:
(?!.*third_party)^.*$ | (?!.*book)^.*$
files
:
(?!.*third_party)^.*$ | (?!.*book)^.*$
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
-
id
:
yapf
-
id
:
yapf
files
:
(.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
files
:
(.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
sha
:
7539d8bd1a00a3c1bfd34cdb606d3a6372e83469
sha
:
5bf6c09bfa1297d3692cadd621ef95f1284e33c0
hooks
:
hooks
:
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
id
:
check-merge-conflict
-
id
:
check-merge-conflict
...
...
Dockerfile
浏览文件 @
a183960b
...
@@ -46,6 +46,11 @@ RUN pip install --upgrade pip && \
...
@@ -46,6 +46,11 @@ RUN pip install --upgrade pip && \
pip
install
pre-commit
'requests==2.9.2'
'ipython==5.3.0'
&&
\
pip
install
pre-commit
'requests==2.9.2'
'ipython==5.3.0'
&&
\
pip
install
'ipykernel==4.6.0'
'jupyter==1.0.0'
pip
install
'ipykernel==4.6.0'
'jupyter==1.0.0'
# To fix https://github.com/PaddlePaddle/Paddle/issues/1954, we use
# the solution in https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
RUN
apt-get
install
-y
libssl-dev libffi-dev
RUN
pip
install
certifi urllib3[secure]
RUN
curl
-sSL
https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz |
tar
-xz
&&
\
RUN
curl
-sSL
https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz |
tar
-xz
&&
\
cd
cmake-3.4.1
&&
./bootstrap
&&
make
-j
`
nproc
`
&&
make
install
&&
\
cd
cmake-3.4.1
&&
./bootstrap
&&
make
-j
`
nproc
`
&&
make
install
&&
\
cd
..
&&
rm
-rf
cmake-3.4.1
cd
..
&&
rm
-rf
cmake-3.4.1
...
...
cmake/cblas.cmake
浏览文件 @
a183960b
...
@@ -81,6 +81,7 @@ if(ATLAS_INC_DIR AND ATLAS_CBLAS_LIB AND ATLAS_LIB AND NOT CBLAS_FOUND)
...
@@ -81,6 +81,7 @@ if(ATLAS_INC_DIR AND ATLAS_CBLAS_LIB AND ATLAS_LIB AND NOT CBLAS_FOUND)
set
(
CBLAS_FOUND ON
)
set
(
CBLAS_FOUND ON
)
if
(
ATLAS_CLAPACK_INC_DIR
)
if
(
ATLAS_CLAPACK_INC_DIR
)
add_definitions
(
-DPADDLE_USE_LAPACK
)
add_definitions
(
-DPADDLE_USE_LAPACK
)
set
(
CBLAS_INC_DIR
${
CBLAS_INC_DIR
}
${
ATLAS_CLAPACK_INC_DIR
}
)
message
(
STATUS
"Found lapack in ATLAS (include:
${
ATLAS_CLAPACK_INC_DIR
}
)"
)
message
(
STATUS
"Found lapack in ATLAS (include:
${
ATLAS_CLAPACK_INC_DIR
}
)"
)
endif
()
endif
()
return
()
return
()
...
...
python/paddle/v2/dataset/cifar.py
浏览文件 @
a183960b
...
@@ -80,7 +80,7 @@ def train100():
...
@@ -80,7 +80,7 @@ def train100():
def
test100
():
def
test100
():
"""
"""
CIFAR-100 test set cretor.
CIFAR-100 test set cre
a
tor.
It returns a reader creator, each sample in the reader is image pixels in
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
[0, 1] and label in [0, 9].
...
@@ -107,7 +107,7 @@ def train10():
...
@@ -107,7 +107,7 @@ def train10():
def
test10
():
def
test10
():
"""
"""
CIFAR-10 test set cretor.
CIFAR-10 test set cre
a
tor.
It returns a reader creator, each sample in the reader is image pixels in
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
[0, 1] and label in [0, 9].
...
...
python/paddle/v2/dataset/mnist.py
浏览文件 @
a183960b
...
@@ -93,7 +93,7 @@ def train():
...
@@ -93,7 +93,7 @@ def train():
def
test
():
def
test
():
"""
"""
MNIST test set cretor.
MNIST test set cre
a
tor.
It returns a reader creator, each sample in the reader is image pixels in
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
[0, 1] and label in [0, 9].
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录