Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
8113de94
P
Paddle
项目概览
Crayon鑫
/
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看板
未验证
提交
8113de94
编写于
4月 19, 2018
作者:
A
Abhinav Arora
提交者:
GitHub
4月 19, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix more CPPLint errors (#10069)
上级
bb4b9af7
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
7 addition
and
8 deletion
+7
-8
paddle/fluid/operators/channel_recv_op.cc
paddle/fluid/operators/channel_recv_op.cc
+4
-4
paddle/fluid/operators/conditional_block_op.cc
paddle/fluid/operators/conditional_block_op.cc
+1
-1
paddle/fluid/operators/expand_op.cc
paddle/fluid/operators/expand_op.cc
+0
-2
paddle/fluid/operators/go_op.cc
paddle/fluid/operators/go_op.cc
+1
-1
paddle/fluid/operators/increment_op.cc
paddle/fluid/operators/increment_op.cc
+1
-0
未找到文件。
paddle/fluid/operators/channel_recv_op.cc
浏览文件 @
8113de94
...
@@ -29,10 +29,10 @@ namespace paddle {
...
@@ -29,10 +29,10 @@ namespace paddle {
namespace
operators
{
namespace
operators
{
void
SetReceiveStatus
(
const
platform
::
Place
&
dev_place
,
void
SetReceiveStatus
(
const
platform
::
Place
&
dev_place
,
framework
::
Variable
&
status_var
,
bool
status
)
{
framework
::
Variable
*
status_var
,
bool
status
)
{
auto
cpu
=
platform
::
CPUPlace
();
auto
cpu
=
platform
::
CPUPlace
();
auto
status_tensor
=
auto
status_tensor
=
status_var
.
GetMutable
<
framework
::
LoDTensor
>
()
->
mutable_data
<
bool
>
({
1
},
status_var
->
GetMutable
<
framework
::
LoDTensor
>
()
->
mutable_data
<
bool
>
({
1
},
cpu
);
cpu
);
status_tensor
[
0
]
=
status
;
status_tensor
[
0
]
=
status
;
}
}
...
@@ -66,7 +66,7 @@ class ChannelRecvOp : public framework::OperatorBase {
...
@@ -66,7 +66,7 @@ class ChannelRecvOp : public framework::OperatorBase {
bool
ok
=
concurrency
::
ChannelReceive
(
ch
,
output_var
);
bool
ok
=
concurrency
::
ChannelReceive
(
ch
,
output_var
);
// Set the status output of the `ChannelReceive` call.
// Set the status output of the `ChannelReceive` call.
SetReceiveStatus
(
dev_place
,
*
scope
.
FindVar
(
Output
(
Status
)),
ok
);
SetReceiveStatus
(
dev_place
,
scope
.
FindVar
(
Output
(
Status
)),
ok
);
}
}
};
};
...
...
paddle/fluid/operators/conditional_block_op.cc
浏览文件 @
8113de94
...
@@ -47,7 +47,7 @@ class ConditionalOp : public framework::OperatorBase {
...
@@ -47,7 +47,7 @@ class ConditionalOp : public framework::OperatorBase {
if
(
!
(
ips
.
size
()
==
1UL
&&
ips
[
0
]
->
IsInitialized
()))
{
if
(
!
(
ips
.
size
()
==
1UL
&&
ips
[
0
]
->
IsInitialized
()))
{
PADDLE_THROW
(
"should have one initialized input as condition"
);
PADDLE_THROW
(
"should have one initialized input as condition"
);
}
}
if
(
!
(
ips
[
0
]
->
type
().
hash_code
()
==
typeid
(
bool
).
hash_code
()
&&
if
(
!
(
ips
[
0
]
->
type
().
hash_code
()
==
typeid
(
bool
).
hash_code
()
&&
// NOLINT
ips
[
0
]
->
numel
()
==
1
))
{
ips
[
0
]
->
numel
()
==
1
))
{
PADDLE_THROW
(
PADDLE_THROW
(
"condition input's data type should be bool, "
"condition input's data type should be bool, "
...
...
paddle/fluid/operators/expand_op.cc
浏览文件 @
8113de94
...
@@ -15,8 +15,6 @@ limitations under the License. */
...
@@ -15,8 +15,6 @@ limitations under the License. */
#include "paddle/fluid/operators/expand_op.h"
#include "paddle/fluid/operators/expand_op.h"
#include <vector>
#include <vector>
#include <vector>
namespace
paddle
{
namespace
paddle
{
namespace
operators
{
namespace
operators
{
...
...
paddle/fluid/operators/go_op.cc
浏览文件 @
8113de94
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
See the License for the specific language governing permissions and
limitations under the License. */
limitations under the License. */
#include <thread>
#include <thread>
// NOLINT
#include <vector>
#include <vector>
#include "paddle/fluid/framework/executor.h"
#include "paddle/fluid/framework/executor.h"
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/lod_tensor.h"
...
...
paddle/fluid/operators/increment_op.cc
浏览文件 @
8113de94
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
// limitations under the License.
// limitations under the License.
#include "paddle/fluid/operators/increment_op.h"
#include "paddle/fluid/operators/increment_op.h"
#include <string>
namespace
paddle
{
namespace
paddle
{
namespace
operators
{
namespace
operators
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录