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

Fix typos, test=document_fix (#53803)

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