@@ -35,29 +35,29 @@ inline void MakeFloatIntrinOp(lang::Args args, lang::RetValue *rv) {
35
35
PADDLE_ENFORCE_GE (
36
36
args.size (),
37
37
1U ,
38
- phi ::errors::InvalidArgument (
38
+ ::common ::errors::InvalidArgument (
39
39
" The number of arguments should be at least 1. Received: %d" ,
40
40
args.size()));
41
41
42
42
Expr arg = args[0 ];
43
43
ir::Call *node = arg->as <ir::Call>();
44
44
45
45
PADDLE_ENFORCE_NOT_NULL (node,
46
- phi ::errors::InvalidArgument (
46
+ ::common ::errors::InvalidArgument (
47
47
" The argument must be a valid call expression." ));
48
48
49
49
PADDLE_ENFORCE_GE (
50
50
node->read_args .size (),
51
51
arg_nums,
52
- phi ::errors::InvalidArgument (
52
+ ::common ::errors::InvalidArgument (
53
53
" The number of read arguments should be at least %d. Received: %d" ,
54
54
arg_nums,
55
55
node->read_args.size()));
56
56
57
57
if (add_float_suffix) {
58
58
PADDLE_ENFORCE_EQ (node->type ().is_float (),
59
59
true ,
60
- phi ::errors::InvalidArgument (
60
+ ::common ::errors::InvalidArgument (
61
61
" The node type should be float. Received: %s" ,
62
62
node->type ().to_string().c_str()));
63
63
*rv = ir::intrinsics::BuiltinIntrin::Make(
@@ -114,12 +114,12 @@ void RegisterCpuIntrinRule() {
114
114
ir::Call *node = arg0->as <ir::Call>();
115
115
PADDLE_ENFORCE_NOT_NULL (
116
116
node,
117
- phi ::errors::InvalidArgument (
117
+ ::common ::errors::InvalidArgument (
118
118
" The argument must be a valid call expression." ));
119
119
PADDLE_ENFORCE_EQ (
120
120
!node->read_args .empty (),
121
121
true ,
122
- phi ::errors::InvalidArgument (
122
+ ::common ::errors::InvalidArgument (
123
123
" The read_args of the node should not be empty." ));
124
124
125
125
Expr arg = node->read_args [0 ];
@@ -134,13 +134,13 @@ void RegisterCpuIntrinRule() {
134
134
" The number of args should be greater than 1." ));
135
135
Expr arg0 = args[0 ];
136
136
ir::Call *node = arg0->as <ir::Call>();
137
- PADDLE_ENFORCE_NOT_NULL (
138
- node,
139
- phi::errors::InvalidArgument ( " The argument must be a valid call "
140
- " expression. Received null." ));
137
+ PADDLE_ENFORCE_NOT_NULL (node,
138
+ ::common::errors::InvalidArgument (
139
+ " The argument must be a valid call "
140
+ " expression. Received null." ));
141
141
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
142
142
true ,
143
- phi ::errors::InvalidArgument (
143
+ ::common ::errors::InvalidArgument (
144
144
" The read_args of the node should not be empty. "
145
145
" The provided read_args are empty." ));
146
146
@@ -162,13 +162,13 @@ void RegisterCpuIntrinRule() {
162
162
" The number of args should be greater than 1." ));
163
163
Expr arg0 = args[0 ];
164
164
ir::Call *node = arg0->as <ir::Call>();
165
- PADDLE_ENFORCE_NOT_NULL (
166
- node,
167
- phi::errors::InvalidArgument ( " The argument must be a valid call "
168
- " expression. Received null." ));
165
+ PADDLE_ENFORCE_NOT_NULL (node,
166
+ ::common::errors::InvalidArgument (
167
+ " The argument must be a valid call "
168
+ " expression. Received null." ));
169
169
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
170
170
true ,
171
- phi ::errors::InvalidArgument (
171
+ ::common ::errors::InvalidArgument (
172
172
" The read_args of the node should not be empty. "
173
173
" Received empty read_args." ));
174
174
@@ -184,13 +184,13 @@ void RegisterCpuIntrinRule() {
184
184
" The number of args should be greater than 1." ));
185
185
Expr arg0 = args[0 ];
186
186
ir::Call *node = arg0->as <ir::Call>();
187
- PADDLE_ENFORCE_NOT_NULL (
188
- node,
189
- phi::errors::InvalidArgument ( " The argument must be a valid call "
190
- " expression. Received null." ));
187
+ PADDLE_ENFORCE_NOT_NULL (node,
188
+ ::common::errors::InvalidArgument (
189
+ " The argument must be a valid call "
190
+ " expression. Received null." ));
191
191
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
192
192
true ,
193
- phi ::errors::InvalidArgument (
193
+ ::common ::errors::InvalidArgument (
194
194
" The read_args of the node should not be empty. "
195
195
" Received empty read_args." ));
196
196
@@ -207,13 +207,13 @@ void RegisterCpuIntrinRule() {
207
207
" The number of args should be greater than 1." ));
208
208
Expr arg0 = args[0 ];
209
209
ir::Call *node = arg0->as <ir::Call>();
210
- PADDLE_ENFORCE_NOT_NULL (
211
- node,
212
- phi::errors::InvalidArgument ( " The argument must be a valid call "
213
- " expression. Received null." ));
210
+ PADDLE_ENFORCE_NOT_NULL (node,
211
+ ::common::errors::InvalidArgument (
212
+ " The argument must be a valid call "
213
+ " expression. Received null." ));
214
214
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
215
215
true ,
216
- phi ::errors::InvalidArgument (
216
+ ::common ::errors::InvalidArgument (
217
217
" The read_args of the node should not be empty. "
218
218
" Received empty read_args." ));
219
219
@@ -229,13 +229,13 @@ void RegisterCpuIntrinRule() {
229
229
" The number of args should be greater than 1." ));
230
230
Expr arg0 = args[0 ];
231
231
ir::Call *node = arg0->as <ir::Call>();
232
- PADDLE_ENFORCE_NOT_NULL (
233
- node,
234
- phi::errors::InvalidArgument ( " The argument must be a valid call "
235
- " expression. Received null." ));
232
+ PADDLE_ENFORCE_NOT_NULL (node,
233
+ ::common::errors::InvalidArgument (
234
+ " The argument must be a valid call "
235
+ " expression. Received null." ));
236
236
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
237
237
true ,
238
- phi ::errors::InvalidArgument (
238
+ ::common ::errors::InvalidArgument (
239
239
" The read_args of the node should not be empty. "
240
240
" Received empty read_args." ));
241
241
@@ -261,13 +261,13 @@ void RegisterCpuIntrinRule() {
261
261
" The number of args should be greater than 1." ));
262
262
Expr arg0 = args[0 ];
263
263
ir::Call *node = arg0->as <ir::Call>();
264
- PADDLE_ENFORCE_NOT_NULL (
265
- node,
266
- phi::errors::InvalidArgument ( " The argument must be a valid call "
267
- " expression. Received null." ));
264
+ PADDLE_ENFORCE_NOT_NULL (node,
265
+ ::common::errors::InvalidArgument (
266
+ " The argument must be a valid call "
267
+ " expression. Received null." ));
268
268
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
269
269
true ,
270
- phi ::errors::InvalidArgument (
270
+ ::common ::errors::InvalidArgument (
271
271
" The read_args of the node should not be empty. "
272
272
" Received empty read_args." ));
273
273
@@ -284,13 +284,13 @@ void RegisterCpuIntrinRule() {
284
284
" The number of args should be greater than 1." ));
285
285
Expr arg0 = args[0 ];
286
286
ir::Call *node = arg0->as <ir::Call>();
287
- PADDLE_ENFORCE_NOT_NULL (
288
- node,
289
- phi::errors::InvalidArgument ( " The argument must be a valid call "
290
- " expression. Received null." ));
287
+ PADDLE_ENFORCE_NOT_NULL (node,
288
+ ::common::errors::InvalidArgument (
289
+ " The argument must be a valid call "
290
+ " expression. Received null." ));
291
291
PADDLE_ENFORCE_EQ (!node->read_args .empty (),
292
292
true ,
293
- phi ::errors::InvalidArgument (
293
+ ::common ::errors::InvalidArgument (
294
294
" The read_args of the node should not be empty. "
295
295
" Received empty read_args." ));
296
296
0 commit comments