From b17a558af464b8db175fb2075d89b139ebef00e6 Mon Sep 17 00:00:00 2001 From: wudenggang Date: Mon, 15 Mar 2021 21:53:41 +0800 Subject: [PATCH] typo fix --- mindspore/ops/op_info_register.py | 6 +++--- mindspore/ops/primitive.py | 2 +- mindspore/parallel/_cost_model_context.py | 2 +- mindspore/profiler/profiling.py | 2 +- mindspore/train/summary/_summary_adapter.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) 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 8fe67dc10b..4c7533240b 100644 --- a/mindspore/ops/primitive.py +++ b/mindspore/ops/primitive.py @@ -176,7 +176,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 1b99fd9fdd..a264610c6c 100644 --- a/mindspore/profiler/profiling.py +++ b/mindspore/profiler/profiling.py @@ -319,7 +319,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.