From c82d1020a48b464cb95f89c045456c1e8922499b Mon Sep 17 00:00:00 2001 From: jiahongyu Date: Tue, 27 Sep 2022 03:44:22 +0000 Subject: [PATCH] polish typo, emum->enum, defalutly->defaultly --- paddle/phi/api/lib/data_transform.h | 2 +- paddle/phi/common/place.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/phi/api/lib/data_transform.h b/paddle/phi/api/lib/data_transform.h index 18ec2f63977..7695855e30b 100644 --- a/paddle/phi/api/lib/data_transform.h +++ b/paddle/phi/api/lib/data_transform.h @@ -56,7 +56,7 @@ class TransformFlag { // the complex is always transferd, except stop_transform_ is true. bool trans_data_type_ = false; - // trans_backend_ and trans_layout_ are true defalutly, + // trans_backend_ and trans_layout_ are true defaultly, // and they can only be setted by global flag. bool trans_backend_ = true; bool trans_layout_ = true; diff --git a/paddle/phi/common/place.h b/paddle/phi/common/place.h index 49050d31b16..12aa6f90ed9 100644 --- a/paddle/phi/common/place.h +++ b/paddle/phi/common/place.h @@ -226,7 +226,7 @@ using GPUPlace = phi::GPUPlace; /* NOTE [ Why need to temporarily adapt to PlaceType? ] -`PlaceType` emum class is the place type used by custom operators since the +`PlaceType` enum class is the place type used by custom operators since the release of 2.0. Since 2.3, we have refactored the operator library and designed a new external Place type. The original PlaceType is no longer suitable for use as an internal type of the framework, but immediately delete the PlaceType, -- GitLab