Skip to content

Commit 581745f

Browse files
authored
Fix recevied received (#61128)
* Fix * Fix
1 parent e5a8ffd commit 581745f

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

paddle/fluid/operators/math/sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Sampler {
3737
range,
3838
0,
3939
platform::errors::InvalidArgument(
40-
"Range should be greater than 0, but recevied %d.", range));
40+
"Range should be greater than 0, but received %d.", range));
4141
if (seed == 0) {
4242
std::random_device r;
4343
seed_ = r();

paddle/fluid/operators/optimizers/sgd_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class SGDOpKernel<phi::CPUContext, T> : public framework::OpKernel<T> {
307307
id_index,
308308
static_cast<int64_t>(0),
309309
platform::errors::InvalidArgument(
310-
"The id in SgdOp should be >= 0. But recevied id_index is [%s]",
310+
"The id in SgdOp should be >= 0. But received id_index is [%s]",
311311
id_index));
312312
for (int64_t j = 0; j < grad_row_width; j++) {
313313
out_data[id_index * grad_row_width + j] -=

paddle/fluid/operators/partial_concat_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PartialConcatOp : public framework::OperatorWithKernel {
4747
0,
4848
platform::errors::InvalidArgument(
4949
"ShapeError: Input tensors count should > 0. But "
50-
"recevied inputs' length is 0."));
50+
"received inputs' length is 0."));
5151
if (inputs_num == 1) {
5252
VLOG(3) << "Warning: concat op have only one input, may waste memory";
5353
}

paddle/fluid/operators/partial_sum_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PartialSumOp : public framework::OperatorWithKernel {
4040
0,
4141
platform::errors::InvalidArgument(
4242
"ShapeError: Input tensors count should > 0. But "
43-
"recevied inputs' length is 0."));
43+
"received inputs' length is 0."));
4444
if (inputs_num == 1) {
4545
VLOG(3) << "Warning: partial_sum op have only one input, may be useless";
4646
}

paddle/phi/infermeta/binary.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,30 +2572,30 @@ void PReluInferMeta(const MetaTensor& x,
25722572
1,
25732573
phi::errors::InvalidArgument(
25742574
"For mode 'all', size of weight Alpha must be one. "
2575-
"But recevied alpha's size: %d.",
2575+
"But received alpha's size: %d.",
25762576
product(alpha.dims())));
25772577
} else if (mode == "channel") {
25782578
auto x_rank = x_dim.size();
25792579
PADDLE_ENFORCE_GE(x_rank,
25802580
2,
25812581
phi::errors::InvalidArgument(
25822582
"For mode 'channel', rank of input X must be "
2583-
"equal or larger than 2. But recevied X's "
2583+
"equal or larger than 2. But received X's "
25842584
"rank: %d",
25852585
x_rank));
25862586
PADDLE_ENFORCE_EQ(data_format == "NCHW" || data_format == "NHWC",
25872587
true,
25882588
phi::errors::InvalidArgument(
25892589
"For mode 'channel', data_format must be one of "
2590-
"NCHW and NHWC. But recevied data_format: %s",
2590+
"NCHW and NHWC. But received data_format: %s",
25912591
data_format));
25922592
if (data_format == "NCHW" || config.is_run_mkldnn_kernel) {
25932593
PADDLE_ENFORCE_EQ(product(alpha.dims()) == x_dim[1],
25942594
true,
25952595
phi::errors::InvalidArgument(
25962596
"For mode 'channel', size of weight Alpha must be "
25972597
"equal to the number of channels of input(x). But "
2598-
"recevied alpha's size: %d, x_dim[1]: %d",
2598+
"received alpha's size: %d, x_dim[1]: %d",
25992599
product(alpha.dims()),
26002600
x_dim[1]));
26012601
} else {
@@ -2604,7 +2604,7 @@ void PReluInferMeta(const MetaTensor& x,
26042604
phi::errors::InvalidArgument(
26052605
"For mode 'channel', size of weight Alpha must be "
26062606
"equal to the number of channels of input(x). But "
2607-
"recevied alpha's size: %d, x_dim[%d]: %d",
2607+
"received alpha's size: %d, x_dim[%d]: %d",
26082608
product(alpha.dims()),
26092609
x_rank - 1,
26102610
x_dim[x_rank - 1]));
@@ -2617,15 +2617,15 @@ void PReluInferMeta(const MetaTensor& x,
26172617
1,
26182618
phi::errors::InvalidArgument(
26192619
"For mode 'element', rank of input X must be "
2620-
"equal or larger than 1. But recevied X's "
2620+
"equal or larger than 1. But received X's "
26212621
"rank: %d",
26222622
x_rank));
26232623
PADDLE_ENFORCE_EQ(
26242624
alpha_rank,
26252625
x_rank,
26262626
phi::errors::InvalidArgument(
26272627
"For mode 'element', rank of weight Alpha must be ",
2628-
"equal to the rank of input(x). But recevied alpha's rank: %d, "
2628+
"equal to the rank of input(x). But received alpha's rank: %d, "
26292629
"x's rank: %d.",
26302630
alpha_rank,
26312631
x_rank));
@@ -2640,14 +2640,14 @@ void PReluInferMeta(const MetaTensor& x,
26402640
x_product,
26412641
phi::errors::InvalidArgument(
26422642
"For mode 'element', the size of weight Alpha must be "
2643-
"equal to the size of input(x). But recevied alpha's size: %d, "
2643+
"equal to the size of input(x). But received alpha's size: %d, "
26442644
"x's size: %d.",
26452645
alpha_product,
26462646
x_product));
26472647
} else {
26482648
PADDLE_THROW(phi::errors::InvalidArgument(
26492649
"Attr(mode) of prelu must be one of 'all', 'channel', or 'element'. "
2650-
"But recevied "
2650+
"But received "
26512651
"mode: '%s'.",
26522652
mode));
26532653
}

paddle/phi/infermeta/unary.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ void MaxOutInferMeta(const MetaTensor& x,
22912291
axis == 1 || axis == -1 || axis == 3,
22922292
true,
22932293
phi::errors::InvalidArgument(
2294-
"axis only supported 1, -1 or 3, but recevied axis is: %d.", axis));
2294+
"axis only supported 1, -1 or 3, but received axis is: %d.", axis));
22952295
PADDLE_ENFORCE_EQ(in_x_dims.size(),
22962296
4,
22972297
phi::errors::InvalidArgument(
@@ -2985,7 +2985,7 @@ void PixelUnshuffleInferMeta(const MetaTensor& x,
29852985
true,
29862986
phi::errors::InvalidArgument(
29872987
"data_format must be one of "
2988-
"NCHW and NHWC. But recevied data_format: %s",
2988+
"NCHW and NHWC. But received data_format: %s",
29892989
data_format));
29902990

29912991
const bool channel_last = (data_format == "NHWC");
@@ -5012,13 +5012,13 @@ void UniformRandomInplaceInferMeta(const MetaTensor& x,
50125012
0,
50135013
errors::InvalidArgument(
50145014
"The uniform_random's diag_num must greater than or "
5015-
"equal 0. But recevied diag_num (%d) < 0.",
5015+
"equal 0. But received diag_num (%d) < 0.",
50165016
diag_num));
50175017
PADDLE_ENFORCE_GE(diag_step,
50185018
0,
50195019
errors::InvalidArgument(
50205020
"The uniform_random's diag_step must greater than or "
5021-
"equal 0. But recevied diag_step (%d) < 0.",
5021+
"equal 0. But received diag_step (%d) < 0.",
50225022
diag_step));
50235023
PADDLE_ENFORCE_NE(out,
50245024
nullptr,
@@ -5375,7 +5375,7 @@ void ChannelShuffleInferMeta(const MetaTensor& x,
53755375
true,
53765376
phi::errors::InvalidArgument(
53775377
"data_format must be one of "
5378-
"NCHW and NHWC. But recevied data_format: %s",
5378+
"NCHW and NHWC. But received data_format: %s",
53795379
data_format));
53805380

53815381
const bool channel_last = (data_format == "NHWC");

paddle/phi/kernels/cpu/sgd_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void SGDSparseParamSparseGradKernel(
177177
id_index,
178178
static_cast<int64_t>(0),
179179
phi::errors::InvalidArgument(
180-
"The id in SgdOp should be >= 0. But recevied id_index is [%s]",
180+
"The id in SgdOp should be >= 0. But received id_index is [%s]",
181181
id_index));
182182
for (int64_t j = 0; j < grad_row_width; j++) {
183183
out_data[id_index * grad_row_width + j] -=

python/paddle/jit/dy2static/convert_call_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def attach(self, func):
6969
setattr(func, CONVERSION_OPTIONS, self)
7070
else:
7171
translator_logger.warn(
72-
"Only support @not_to_static to type(function) or type(method), but recevied {}".format(
72+
"Only support @not_to_static to type(function) or type(method), but received {}".format(
7373
type(func)
7474
)
7575
)

0 commit comments

Comments
 (0)