未验证 提交 4f7dfd02 编写于 作者: C co63oc 提交者: GitHub

Fix typos, test=document_fix (#53803)

上级 847c48a8
...@@ -70,7 +70,7 @@ class Allocation { ...@@ -70,7 +70,7 @@ class Allocation {
// the AlignedAllocator will always allocate memory as size + kAlignment. // the AlignedAllocator will always allocate memory as size + kAlignment.
// The raw pointer might not aligned, so an offset might be added to raw // The raw pointer might not aligned, so an offset might be added to raw
// the pointer. The size of this allocation will be // the pointer. The size of this allocation will be
// `size + kAlignemnt - offset`. // `size + kAlignment - offset`.
size_t size() const noexcept { return size_; } size_t size() const noexcept { return size_; }
void* operator->() const noexcept { return ptr_; } void* operator->() const noexcept { return ptr_; }
......
...@@ -106,7 +106,7 @@ void* DenseTensor::AllocateFrom(Allocator* allocator, ...@@ -106,7 +106,7 @@ void* DenseTensor::AllocateFrom(Allocator* allocator,
phi::errors::InvalidArgument( phi::errors::InvalidArgument(
"Required allocator shall not be nullptr, but received nullptr.")); "Required allocator shall not be nullptr, but received nullptr."));
if (this->dtype() != dtype) { if (this->dtype() != dtype) {
VLOG(10) << "change data type in mutbale_data, target dtype - " << dtype; VLOG(10) << "change data type in mutable_data, target dtype - " << dtype;
meta_.dtype = dtype; meta_.dtype = dtype;
} }
......
...@@ -351,7 +351,7 @@ struct EnforceNotMet : public std::exception { ...@@ -351,7 +351,7 @@ struct EnforceNotMet : public std::exception {
// Complete error message // Complete error message
// e.g. InvalidArgumentError: *** // e.g. InvalidArgumentError: ***
std::string err_str_; std::string err_str_;
// Simple errror message used when no C++ stack and python compile stack // Simple error message used when no C++ stack and python compile stack
// e.g. (InvalidArgument) *** // e.g. (InvalidArgument) ***
std::string simple_err_str_; std::string simple_err_str_;
}; };
......
...@@ -66,7 +66,7 @@ enum ErrorCode { ...@@ -66,7 +66,7 @@ enum ErrorCode {
EXECUTION_TIMEOUT = 8, EXECUTION_TIMEOUT = 8,
// Operation is not implemented or not supported/enabled in this service. // Operation is not implemented or not supported/enabled in this service.
// Error type string: "UnimpelmentedError" // Error type string: "UnimplementedError"
UNIMPLEMENTED = 9, UNIMPLEMENTED = 9,
// The service is currently unavailable. This is a most likely a // The service is currently unavailable. This is a most likely a
......
...@@ -1050,10 +1050,10 @@ DEFINE_int32(record_pool_max_size, ...@@ -1050,10 +1050,10 @@ DEFINE_int32(record_pool_max_size,
DEFINE_int32(slotpool_thread_num, 1, "SlotRecordDataset slot pool thread num"); DEFINE_int32(slotpool_thread_num, 1, "SlotRecordDataset slot pool thread num");
DEFINE_bool(enable_slotpool_wait_release, DEFINE_bool(enable_slotpool_wait_release,
false, false,
"enable slotrecord obejct wait release, default false"); "enable slotrecord object wait release, default false");
DEFINE_bool(enable_slotrecord_reset_shrink, DEFINE_bool(enable_slotrecord_reset_shrink,
false, false,
"enable slotrecord obejct reset shrink memory, default false"); "enable slotrecord object reset shrink memory, default false");
DEFINE_bool(enable_ins_parser_file, DEFINE_bool(enable_ins_parser_file,
false, false,
"enable parser ins file, default false"); "enable parser ins file, default false");
...@@ -1067,7 +1067,7 @@ PHI_DEFINE_EXPORTED_double(gpugraph_hbm_table_load_factor, ...@@ -1067,7 +1067,7 @@ PHI_DEFINE_EXPORTED_double(gpugraph_hbm_table_load_factor,
PHI_DEFINE_EXPORTED_bool( PHI_DEFINE_EXPORTED_bool(
gpugraph_enable_gpu_direct_access, gpugraph_enable_gpu_direct_access,
false, false,
"enable direct access bwtween multi gpu cards, default false"); "enable direct access between multi gpu cards, default false");
PHI_DEFINE_EXPORTED_bool( PHI_DEFINE_EXPORTED_bool(
gpugraph_enable_segment_merge_grads, gpugraph_enable_segment_merge_grads,
false, false,
...@@ -1140,12 +1140,12 @@ PHI_DEFINE_EXPORTED_int32(search_cache_max_number, ...@@ -1140,12 +1140,12 @@ PHI_DEFINE_EXPORTED_int32(search_cache_max_number,
"search_cache_max_number."); "search_cache_max_number.");
/** /**
* Preformance related FLAG * Performance related FLAG
* Name: einsum_opt * Name: einsum_opt
* Since Version: 2.3.0 * Since Version: 2.3.0
* Value Range: bool, default=false * Value Range: bool, default=false
* Example: * Example:
* Note: If True, EinsumOp will be optimimzed by innercache reuse, which * Note: If True, EinsumOp will be optimized by innercache reuse, which
* uses more gpu memory. * uses more gpu memory.
*/ */
PHI_DEFINE_EXPORTED_bool( PHI_DEFINE_EXPORTED_bool(
...@@ -1166,7 +1166,7 @@ PHI_DEFINE_EXPORTED_bool( ...@@ -1166,7 +1166,7 @@ PHI_DEFINE_EXPORTED_bool(
*/ */
PHI_DEFINE_EXPORTED_string(jit_engine_type, PHI_DEFINE_EXPORTED_string(jit_engine_type,
"Predictor", "Predictor",
"Choose default funciton type in JitLayer."); "Choose default function type in JitLayer.");
/** /**
* Custom Device NPU related FLAG * Custom Device NPU related FLAG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册