提交 4d1ee0ff 编写于 作者: Y Yibing Liu

Amend license and comments in reshape_op

上级 5a3d1362
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
...@@ -38,8 +37,8 @@ class ReshapeOp : public framework::OperatorWithKernel { ...@@ -38,8 +37,8 @@ class ReshapeOp : public framework::OperatorWithKernel {
// TODO(qiao) change batch_size // TODO(qiao) change batch_size
for (size_t i = 1; i < shape.size(); ++i) { for (size_t i = 1; i < shape.size(); ++i) {
PADDLE_ENFORCE(shape[i] > 0, PADDLE_ENFORCE(shape[i] > 0,
"Each dimension of shape " "Each dimension of Attr(shape) "
"must be positiv except the first."); "must be positive except the first one.");
} }
if (shape[0] < 0) { if (shape[0] < 0) {
shape[0] = x_dims[0]; shape[0] = x_dims[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册