diff --git a/mindspore/ops/op_info_register.py b/mindspore/ops/op_info_register.py index c4df8809db..7a27f68016 100644 --- a/mindspore/ops/op_info_register.py +++ b/mindspore/ops/op_info_register.py @@ -68,7 +68,7 @@ class RegOp: Args: op_name (str): Name of op. - inputs (list): Inputs inoformation of the op. + inputs (list): Inputs information of the op. outputs (list): Outputs information of the op. attr_ (list): Attribute information of the op. dtype_format_ (list): Dtype and format information of the op. @@ -142,7 +142,7 @@ class RegOp: Raises: TypeError: If the type of value is not list. ValueError: If the size of param list is not equal to the size of key list, or - the size of param list is not equal to the size of funtion list. + the size of param list is not equal to the size of function list. """ for i in [param_list, key_list, fn_list]: if not isinstance(i, list): @@ -459,7 +459,7 @@ class TBERegOp(RegOp): def op_pattern(self, pattern=None): """ - The behavior type of opeator, such as broadcast, reduce and so on. + The behavior type of operator, such as broadcast, reduce and so on. Args: pattern (str): Value of op pattern. diff --git a/mindspore/ops/primitive.py b/mindspore/ops/primitive.py index 6dd0e1e48e..40bf0af515 100644 --- a/mindspore/ops/primitive.py +++ b/mindspore/ops/primitive.py @@ -177,7 +177,7 @@ class Primitive(Primitive_): Returns: A tuple consisting of two elements. The first element indicates whether we should filter out current - arguments; the seconde element is the output if we need to filter out the arguments. + arguments; the second element is the output if we need to filter out the arguments. """ return (False, None) diff --git a/mindspore/parallel/_cost_model_context.py b/mindspore/parallel/_cost_model_context.py index 2b406b7a8a..a1a1bdaada 100644 --- a/mindspore/parallel/_cost_model_context.py +++ b/mindspore/parallel/_cost_model_context.py @@ -423,7 +423,7 @@ class _CostModelContext: Set costmodel allreduce fusion allreduce bandwidth. Args: - allreduce_bandwidth (int): The bancwidth of AllReduce. + allreduce_bandwidth (int): The bandwidth of AllReduce. Raises: ValueError: If context handle is none. diff --git a/mindspore/profiler/profiling.py b/mindspore/profiler/profiling.py index b389862c11..a14c6ae0b0 100644 --- a/mindspore/profiler/profiling.py +++ b/mindspore/profiler/profiling.py @@ -341,7 +341,7 @@ class Profiler: # whether keep the first step skip_first_step_flag = framework_parser.check_op_name(INIT_OP_NAME) point_info = framework_parser.point_info - # recognize inference or traning mode + # recognize inference or training mode is_traning_mode_flag = framework_parser.check_op_name("Gradients") # parser the step trace files and save the result to disk source_path = validate_and_normalize_path(source_path) diff --git a/mindspore/train/summary/_summary_adapter.py b/mindspore/train/summary/_summary_adapter.py index 3620c191e8..f1fb3af598 100644 --- a/mindspore/train/summary/_summary_adapter.py +++ b/mindspore/train/summary/_summary_adapter.py @@ -426,7 +426,7 @@ def _convert_image_format(np_tensor, input_format, out_format='HWC'): def _make_canvas_for_imgs(tensor, col_imgs=8): """ - Expand the N, show imgs on a canvs. + Expand the N, show imgs on a canvas. Args: tensor (Tensor): The canvas value.