@@ -94,7 +94,7 @@ inline DataType ToComplexType(const DataType& type) {
9494 case DataType::FLOAT64:
9595 return DataType::COMPLEX128;
9696 default :
97- PADDLE_THROW (errors::Unimplemented (
97+ PADDLE_THROW (common:: errors::Unimplemented (
9898 " Can not transform data type (%s) to complex type, now only support "
9999 " float32 and float64 real value." ,
100100 type));
@@ -108,7 +108,7 @@ inline DataType ToRealType(const DataType& type) {
108108 case DataType::COMPLEX128:
109109 return DataType::FLOAT64;
110110 default :
111- PADDLE_THROW (errors::Unimplemented (
111+ PADDLE_THROW (common:: errors::Unimplemented (
112112 " Can not transform data type (%s) to real type, now only support "
113113 " complex64 and complex128 value." ,
114114 type));
@@ -249,8 +249,8 @@ inline ncclDataType_t ToNCCLDataType(DataType type) {
249249 return ncclBfloat16;
250250#endif
251251 } else {
252- PADDLE_THROW (
253- errors::Unimplemented ( " This datatype in nccl is not supported." ));
252+ PADDLE_THROW (common::errors::Unimplemented (
253+ " This datatype in nccl is not supported." ));
254254 }
255255}
256256#endif
@@ -273,8 +273,8 @@ inline BKCLDataType ToBKCLDataType(DataType type) {
273273 } else if (type == DataType::BFLOAT16) {
274274 return BKCL_BFLOAT16;
275275 } else {
276- PADDLE_THROW (
277- errors::Unimplemented ( " This datatype in bkcl is not supported." ));
276+ PADDLE_THROW (common::errors::Unimplemented (
277+ " This datatype in bkcl is not supported." ));
278278 }
279279}
280280#endif
0 commit comments