Skip to content

Commit b63557d

Browse files
committed
Fix
1 parent 9bbbbe9 commit b63557d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

paddle/phi/core/distributed/auto_parallel/process_mesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ProcessMesh {
6060
return shape_[i];
6161
}
6262
}
63-
PADDLE_THROW(errors::InvalidArgument(
63+
PADDLE_THROW(common::errors::InvalidArgument(
6464
"Cannot find the dimension of %s in this process mesh.", dim_name));
6565
}
6666

paddle/phi/core/utils/data_type.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)