@@ -86,11 +86,11 @@ void ArgMaxMinMapper(PyObject* args,
8686 raise ValueError(
8787 "the value of 'dtype' in argmax could not be None, but received None")
8888 */
89- PADDLE_ENFORCE_NE (
90- dtype_obj ,
91- Py_None,
92- phi::errors::InvalidArgument ( " the value of 'dtype' in argmax and argmin "
93- " could not be None, but received None" ));
89+ PADDLE_ENFORCE_NE (dtype_obj,
90+ Py_None ,
91+ common::errors::InvalidArgument (
92+ " the value of 'dtype' in argmax and argmin "
93+ " could not be None, but received None" ));
9494 *dtype = CastPyArg2DataType (dtype_obj, " argmax" , 3 , phi::DataType::INT64);
9595 // Check Remaining Params validity if needed
9696 CheckRemainingParamsValidity (args, kwargs, remaining_kwargs, nargs);
@@ -145,11 +145,11 @@ void ArgMaxMinMapper(PyObject* args,
145145 }
146146 *keepdims = CastPyArg2Boolean (keepdims_obj, " argmax" , 2 , false );
147147
148- PADDLE_ENFORCE_NE (
149- dtype_obj ,
150- Py_None,
151- phi::errors::InvalidArgument ( " the value of 'dtype' in argmax and argmin "
152- " could not be None, but received None" ));
148+ PADDLE_ENFORCE_NE (dtype_obj,
149+ Py_None ,
150+ common::errors::InvalidArgument (
151+ " the value of 'dtype' in argmax and argmin "
152+ " could not be None, but received None" ));
153153 *dtype = CastPyArg2DataType (dtype_obj, " argmax" , 3 , phi::DataType::INT64);
154154
155155 // Check Remaining Params validity if needed
@@ -314,7 +314,7 @@ void GeluMapper(PyObject* args,
314314 approximate = nullptr ;
315315 PADDLE_ENFORCE_NE (approximate,
316316 nullptr ,
317- phi ::errors::InvalidArgument (
317+ common ::errors::InvalidArgument (
318318 " the value of approximate in gelu should be 'tanh' "
319319 " or 'none', but received %s" ,
320320 approximate_str.c_str ()));
@@ -357,7 +357,7 @@ void GeluMapper(PyObject* args,
357357 approximate = nullptr ;
358358 PADDLE_ENFORCE_NE (approximate,
359359 nullptr ,
360- phi ::errors::InvalidArgument (
360+ common ::errors::InvalidArgument (
361361 " the value of approximate in gelu should be 'tanh' "
362362 " or 'none', but received %s" ,
363363 approximate_str.c_str ()));
0 commit comments