@@ -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 }
0 commit comments