Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
792059c2
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
792059c2
编写于
8月 09, 2017
作者:
Y
Yu Yang
提交者:
GitHub
8月 09, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3355 from reyoung/feature/remove_unused_op_cpp_unittests
Remove unnecessary C++ operator test
上级
be9867f9
840d0c74
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
78 deletion
+0
-78
paddle/operators/CMakeLists.txt
paddle/operators/CMakeLists.txt
+0
-3
paddle/operators/add_op_test.cc
paddle/operators/add_op_test.cc
+0
-28
paddle/operators/mean_op_test.cc
paddle/operators/mean_op_test.cc
+0
-25
paddle/operators/sgd_op_test.cc
paddle/operators/sgd_op_test.cc
+0
-22
未找到文件。
paddle/operators/CMakeLists.txt
浏览文件 @
792059c2
...
...
@@ -45,10 +45,8 @@ cc_library(net_op SRCS net_op.cc DEPS op_registry)
cc_test
(
net_op_test SRCS net_op_test.cc DEPS net_op
)
op_library
(
add_op SRCS add_op.cc add_op.cu
)
cc_test
(
add_op_test SRCS add_op_test.cc DEPS add_op
)
op_library
(
mean_op SRCS mean_op.cc mean_op.cu
)
cc_test
(
mean_op_test SRCS mean_op_test.cc DEPS mean_op
)
op_library
(
mul_op SRCS mul_op.cc mul_op.cu
)
op_library
(
rowwise_add_op SRCS rowwise_add_op.cu rowwise_add_op.cc
)
...
...
@@ -59,7 +57,6 @@ op_library(cross_entropy_op SRCS cross_entropy_op.cc cross_entropy_op.cu)
op_library
(
fill_zeros_like_op SRCS fill_zeros_like_op.cc fill_zeros_like_op.cu
)
op_library
(
sgd_op SRCS sgd_op.cc sgd_op.cu
)
cc_test
(
sgd_op_test SRCS sgd_op_test.cc DEPS sgd_op
)
op_library
(
fc_op
SRCS fc_op.cc
...
...
paddle/operators/add_op_test.cc
已删除
100644 → 0
浏览文件 @
be9867f9
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include <gtest/gtest.h>
#define private public
#include "paddle/framework/op_registry.h"
USE_OP
(
add_two
);
TEST
(
AddOp
,
GetOpProto
)
{
auto
&
protos
=
paddle
::
framework
::
OpRegistry
::
protos
();
auto
it
=
protos
.
find
(
"add_two"
);
ASSERT_NE
(
it
,
protos
.
end
());
auto
&
op_creators
=
paddle
::
framework
::
OpRegistry
::
op_creators
();
auto
it1
=
op_creators
.
find
(
"add_two_grad"
);
ASSERT_NE
(
it1
,
op_creators
.
end
());
}
paddle/operators/mean_op_test.cc
已删除
100644 → 0
浏览文件 @
be9867f9
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include <gtest/gtest.h>
#include <paddle/framework/op_registry.h>
USE_OP
(
mean
);
TEST
(
MeanOp
,
GetOpProto
)
{
auto
&
protos
=
paddle
::
framework
::
OpRegistry
::
protos
();
auto
it
=
protos
.
find
(
"mean"
);
ASSERT_NE
(
it
,
protos
.
end
());
}
paddle/operators/sgd_op_test.cc
已删除
100644 → 0
浏览文件 @
be9867f9
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include <gtest/gtest.h>
#include <paddle/framework/op_registry.h>
USE_OP
(
sgd
);
TEST
(
SGDOp
,
GetOpProto
)
{
auto
&
protos
=
paddle
::
framework
::
OpRegistry
::
protos
();
auto
it
=
protos
.
find
(
"sgd"
);
ASSERT_NE
(
it
,
protos
.
end
());
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录