diff --git a/RELEASE.md b/RELEASE.md index b604498e..e301658d 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -47,7 +47,7 @@ Provide explanations and their benchmarks for image classification deep CNN mode ### Profiler -* Fix paser framework file error if the profiling data of one op is saved separately to two files.([!7824](https://gitee.com/mindspore/mindspore/pulls/7824)) +* Fix parser framework file error if the profiling data of one op is saved separately to two files.([!7824](https://gitee.com/mindspore/mindspore/pulls/7824)) ### Model Explanation diff --git a/mindinsight/backend/run.py b/mindinsight/backend/run.py index 4d540068..7aa17c4a 100644 --- a/mindinsight/backend/run.py +++ b/mindinsight/backend/run.py @@ -267,7 +267,7 @@ def start(): stderr=subprocess.STDOUT ) - # sleep 1 second for gunicorn appplication to load modules + # sleep 1 second for gunicorn application to load modules time.sleep(1) # check if gunicorn application is running diff --git a/mindinsight/datavisual/data_transform/data_loader.py b/mindinsight/datavisual/data_transform/data_loader.py index 349f023c..94bd183d 100644 --- a/mindinsight/datavisual/data_transform/data_loader.py +++ b/mindinsight/datavisual/data_transform/data_loader.py @@ -63,7 +63,7 @@ class DataLoader: Get events data from log file. Returns: - EventsData, indiciates events data. + EventsData, indicates events data. """ return self._loader.get_events_data() diff --git a/mindinsight/datavisual/data_transform/data_manager.py b/mindinsight/datavisual/data_transform/data_manager.py index b16431d5..d8090899 100644 --- a/mindinsight/datavisual/data_transform/data_manager.py +++ b/mindinsight/datavisual/data_transform/data_manager.py @@ -1016,7 +1016,7 @@ class DataManager: @status.setter def status(self, status): - """Set data manger status.""" + """Set data manager status.""" self._status = status def cache_train_job(self, train_id): diff --git a/mindinsight/datavisual/data_transform/ms_data_loader.py b/mindinsight/datavisual/data_transform/ms_data_loader.py index 5f4c3f53..883a8e15 100644 --- a/mindinsight/datavisual/data_transform/ms_data_loader.py +++ b/mindinsight/datavisual/data_transform/ms_data_loader.py @@ -451,7 +451,7 @@ class _SummaryParser(_Parser): event_crc_str = '' if len(event_str) != event_len or len(event_crc_str) != CRC_STR_SIZE: - raise exceptions.CRCLengthFailedError("The event sting length or crc length is incorrect.") + raise exceptions.CRCLengthFailedError("The event string length or crc length is incorrect.") if not crc32.CheckValueAgainstData(event_crc_str, event_str, event_len): raise exceptions.CRCFailedError("The event string crc is incorrect.") diff --git a/mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto b/mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto index ab28a3b6..6fc7c328 100644 --- a/mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto +++ b/mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto @@ -254,7 +254,7 @@ message ModelProto { // The parameterized graph that is evaluated to execute the model. optional GraphProto graph = 4; - // metadata info of opeartors + // metadata info of operators optional OperatorSetProto metadata_operators = 5; }; diff --git a/mindinsight/datavisual/utils/crc32/__init__.pyi b/mindinsight/datavisual/utils/crc32/__init__.pyi index d9e930f4..ff2be9ae 100644 --- a/mindinsight/datavisual/utils/crc32/__init__.pyi +++ b/mindinsight/datavisual/utils/crc32/__init__.pyi @@ -19,7 +19,7 @@ ByteStr = Union[bytes, str] def CheckValueAgainstData(crc_value: ByteStr, data: ByteStr, size: int) -> bool: - """Check crc_value against new crc value from data to see if data is currupted.""" + """Check crc_value against new crc value from data to see if data is corrupted.""" def GetMaskCrc32cValue(data: ByteStr, n: int) -> int: diff --git a/mindinsight/datavisual/utils/tools.py b/mindinsight/datavisual/utils/tools.py index 5e381fed..fd21569d 100644 --- a/mindinsight/datavisual/utils/tools.py +++ b/mindinsight/datavisual/utils/tools.py @@ -142,7 +142,7 @@ def get_img_mimetype(img_data): def get_train_id(request): """ - Get train ID from requst query string and unquote content. + Get train ID from request query string and unquote content. Args: request (FlaskRequest): Http request instance. @@ -161,7 +161,7 @@ def get_train_id(request): def get_profiler_dir(request): """ - Get train ID from requst query string and unquote content. + Get train ID from request query string and unquote content. Args: request (FlaskRequest): Http request instance. @@ -180,7 +180,7 @@ def get_profiler_dir(request): def unquote_args(request, arg_name): """ - Get args from requst query string and unquote content. + Get args from request query string and unquote content. Args: request (FlaskRequest): Http request instance. @@ -200,7 +200,7 @@ def unquote_args(request, arg_name): def get_device_id(request): """ - Get device ID from requst query string and unquote content. + Get device ID from request query string and unquote content. Args: request (FlaskRequest): Http request instance. diff --git a/mindinsight/debugger/debugger_grpc_server.py b/mindinsight/debugger/debugger_grpc_server.py index adbef7bd..9fd54329 100644 --- a/mindinsight/debugger/debugger_grpc_server.py +++ b/mindinsight/debugger/debugger_grpc_server.py @@ -472,7 +472,7 @@ class DebuggerGrpcServer(grpc_server_base.EventListenerServicer): @debugger_wrap def SendWatchpointHits(self, request_iterator, context): """Send watchpoint hits info DebuggerCache.""" - log.info("Received WatchpointHits. Left run cmd %s change to emtpy.", self._old_run_cmd) + log.info("Received WatchpointHits. Left run cmd %s change to empty.", self._old_run_cmd) self._old_run_cmd.clear() if self._cache_store.get_stream_handler(Streams.METADATA).state == ServerStatus.RUNNING.value: # if the client session is running a script, all the cached command should be cleared diff --git a/mindinsight/debugger/proto/ms_graph.proto b/mindinsight/debugger/proto/ms_graph.proto index 0a17f460..4c30c30f 100644 --- a/mindinsight/debugger/proto/ms_graph.proto +++ b/mindinsight/debugger/proto/ms_graph.proto @@ -255,7 +255,7 @@ message ModelProto { // The parameterized graph that is evaluated to execute the model. optional GraphProto graph = 4; - // metadata info of opeartors + // metadata info of operators optional OperatorSetProto metadata_operators = 5; }; @@ -319,4 +319,4 @@ message TensorProto { // If the tensor name should be truncated. optional bool truncate = 8; -} \ No newline at end of file +} diff --git a/mindinsight/debugger/stream_handler/tensor_handler.py b/mindinsight/debugger/stream_handler/tensor_handler.py index d39dc124..b4ba2f8e 100644 --- a/mindinsight/debugger/stream_handler/tensor_handler.py +++ b/mindinsight/debugger/stream_handler/tensor_handler.py @@ -349,7 +349,7 @@ class TensorHandler(StreamHandlerBase): tensor_info = curr_tensor.get_basic_info() tensor_info.pop('has_prev_step') tensor_info.pop('value') - # calculate tensor comparision object + # calculate tensor comparison object tensor_comparison = curr_tensor.tensor_comparison if not tensor_comparison or tensor_comparison.tolerance != tolerance: if curr_tensor.value.shape != prev_tensor.value.shape: @@ -369,7 +369,7 @@ class TensorHandler(StreamHandlerBase): tensor_info['diff'] = result.tolist() elif isinstance(curr_tensor_slice, str): tensor_info['diff'] = curr_tensor_slice - # add comparision statistics + # add comparison statistics tensor_info.update(self._get_comparison_statistics(curr_tensor, prev_tensor)) reply = {'tensor_value': tensor_info} return reply diff --git a/mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py b/mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py index 1d6c6a66..ad1af31b 100644 --- a/mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py +++ b/mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py @@ -19,7 +19,7 @@ from mindinsight.mindconverter.graph_based_converter.common.code_fragment import class FragmentHandler: """ - Define a handler to process the infomation contained by Fragment. + Define a handler to process the information contained by Fragment. Args: fragment (NewFragment): The refactored fragment class. diff --git a/mindinsight/profiler/analyser/minddata_analyser.py b/mindinsight/profiler/analyser/minddata_analyser.py index 5ba85448..2caade88 100644 --- a/mindinsight/profiler/analyser/minddata_analyser.py +++ b/mindinsight/profiler/analyser/minddata_analyser.py @@ -55,7 +55,7 @@ class MinddataAnalyser(BaseAnalyser): if file_path: file_path = validate_and_normalize_path( - file_path, raise_key="Invaild minddata_getnext file path.") + file_path, raise_key="Invalid minddata_getnext file path.") with open(file_path) as data_file: for line in data_file.readlines(): node_info = line.split() @@ -119,7 +119,7 @@ class MinddataAnalyser(BaseAnalyser): if file_path: file_path = validate_and_normalize_path( - file_path, raise_key="Invaild device_queue file path.") + file_path, raise_key="Invalid device_queue file path.") with open(file_path) as data_file: for line in data_file.readlines(): op_info = line.split() diff --git a/mindinsight/profiler/analyser/minddata_pipeline_analyser.py b/mindinsight/profiler/analyser/minddata_pipeline_analyser.py index 03149f79..750faf1d 100644 --- a/mindinsight/profiler/analyser/minddata_pipeline_analyser.py +++ b/mindinsight/profiler/analyser/minddata_pipeline_analyser.py @@ -117,7 +117,7 @@ class MinddataPipelineAnalyser(BaseAnalyser): self._file_name_pipeline.format(self._device_id) ) pipeline_file_path = validate_and_normalize_path( - pipeline_file_path, raise_key="Invaild pipeline file path.") + pipeline_file_path, raise_key="Invalid pipeline file path.") if not os.path.isfile(pipeline_file_path): logger.warning('The file <%s> does not exist.', pipeline_file_path) return diff --git a/mindinsight/profiler/analyser/step_trace_analyser.py b/mindinsight/profiler/analyser/step_trace_analyser.py index 42066b7c..d8e0bd78 100644 --- a/mindinsight/profiler/analyser/step_trace_analyser.py +++ b/mindinsight/profiler/analyser/step_trace_analyser.py @@ -95,7 +95,7 @@ class StepTraceAnalyser(BaseAnalyser): log.error("Failed to find parsed trace time file.") raise ProfilerFileNotFoundException('parsed step trace time file') file_path = validate_and_normalize_path( - file_path, raise_key="Invaild latest_trace_trace_time file path.") + file_path, raise_key="Invalid latest_trace_trace_time file path.") with open(file_path, 'r') as handle: csv_reader = csv.reader(handle) self.__column__ = next(csv_reader) @@ -108,7 +108,7 @@ class StepTraceAnalyser(BaseAnalyser): """Load point info.""" file_path = os.path.join(self._profiling_dir, 'step_trace_point_info.json') file_path = validate_and_normalize_path( - file_path, raise_key="Invaild step_trace_point_info file path.") + file_path, raise_key="Invalid step_trace_point_info file path.") if os.path.isfile(file_path): with open(file_path, 'r', encoding='utf-8') as file: try: @@ -306,7 +306,7 @@ class StepTraceAnalyser(BaseAnalyser): def _construct_reduce_lines(self, row_info_dict): """ - Contruct first line in detailed graph. + Construct first line in detailed graph. Args: row_info_dict (dict): Step trace information. diff --git a/mindinsight/ui/src/components/debugger-grid-table-simple.vue b/mindinsight/ui/src/components/debugger-grid-table-simple.vue index e02521a1..e6a67235 100644 --- a/mindinsight/ui/src/components/debugger-grid-table-simple.vue +++ b/mindinsight/ui/src/components/debugger-grid-table-simple.vue @@ -125,7 +125,7 @@ export default { default: 'value', }, // Maximum number of columns - // If the value is less then 0, there is no maximun value. + // If the value is less then 0, there is no maximum value. columnLimitNum: { type: Number, default: -1, @@ -140,16 +140,16 @@ export default { filterArr: [], // Dimension selection array formateData: [], // Formatted data formateArr: [], // Formatted array - statistics: {}, // Object contain maximun and minimun + statistics: {}, // Object contain maximum and minimum accuracy: 10, // Accuracy value - incorrectData: false, // Wheather the dimension is correctly selected + incorrectData: false, // Whether the dimension is correctly selected updated: false, // Updated - scrollTop: false, // Wheather scroll to the top - filterCorrect: true, // Wheather the dimension input is correct + scrollTop: false, // Whether scroll to the top + filterCorrect: true, // Whether the dimension input is correct requestError: false, // Exceeded the specification errorMsg: '', // Error message viewResizeFlag: false, // Size reset flag - // Accuray options + // Accuracy options accuracyArr: [ {label: 0, value: 0}, {label: 1, value: 1}, @@ -563,9 +563,9 @@ export default { }, /** * Updating Table Data - * @param {Boolean} newDataFlag Wheather data is updated + * @param {Boolean} newDataFlag Whether data is updated * @param {Array} dimension Array of dimension - * @param {Object} statistics Object contains maximun and minimun + * @param {Object} statistics Object contains maximum and minimum * @param {String} filterStr String of dimension selection */ updateGridData(newDataFlag, dimension, statistics, filterStr) { diff --git a/mindinsight/ui/src/components/grid-table-simple.vue b/mindinsight/ui/src/components/grid-table-simple.vue index 9235eef7..7bec4f2c 100644 --- a/mindinsight/ui/src/components/grid-table-simple.vue +++ b/mindinsight/ui/src/components/grid-table-simple.vue @@ -119,7 +119,7 @@ export default { default: false, }, // Maximum number of columns - // If the value is less then 0, there is no maximun value. + // If the value is less then 0, there is no maximum value. columnLimitNum: { type: Number, default: -1, @@ -134,16 +134,16 @@ export default { filterArr: [], // Dimension selection array formateData: [], // Formatted data formateArr: [], // Formatted array - statistics: {}, // Object contain maximun and minimun + statistics: {}, // Object contain maximum and minimum accuracy: 5, // Accuracy value - incorrectData: false, // Wheather the dimension is correctly selected + incorrectData: false, // Whether the dimension is correctly selected updated: false, // Updated - scrollTop: false, // Wheather scroll to the top - filterCorrect: true, // Wheather the dimension input is correct + scrollTop: false, // Whether scroll to the top + filterCorrect: true, // Whether the dimension input is correct requestError: false, // Exceeded the specification errorMsg: '', // Error message viewResizeFlag: false, // Size reset flag - // Accuray options + // Accuracy options accuracyArr: [ {label: 0, value: 0}, {label: 1, value: 1}, @@ -512,9 +512,9 @@ export default { }, /** * Updating Table Data - * @param {Boolean} newDataFlag Wheather data is updated + * @param {Boolean} newDataFlag Whether data is updated * @param {Array} dimension Array of dimension - * @param {Object} statistics Object contains maximun and minimun + * @param {Object} statistics Object contains maximum and minimum * @param {String} filterStr String of dimension selection */ updateGridData(newDataFlag, dimension, statistics, filterStr) { diff --git a/mindinsight/ui/src/components/histogram-unit.vue b/mindinsight/ui/src/components/histogram-unit.vue index 073d78f4..54774a19 100644 --- a/mindinsight/ui/src/components/histogram-unit.vue +++ b/mindinsight/ui/src/components/histogram-unit.vue @@ -66,7 +66,7 @@ export default { updated: false, // Updated zrDrawElement: {hoverDots: []}, zr: null, - chartTipFlag: false, // Wheather to display tips of the histogram + chartTipFlag: false, // Whether to display tips of the histogram requestError: false, // Exceeded the specification errorMsg: '', // Error message viewResizeFlag: false, // Size reset flag @@ -174,7 +174,7 @@ export default { } }, /** - * Formate chart option + * Format chart option * @return {Object} chatr option */ formatCharOption() { @@ -387,7 +387,7 @@ export default { return this.charObj.convertToPixel('grid', pt); }, /** - * Formate Y coordinate display + * Format Y coordinate display * @param {Number} value * @return {Object} */ @@ -412,7 +412,7 @@ export default { return data; }, /** - * Formate time display + * Format time display * @param {Number} value * @return {Number} Formatted number */ @@ -425,7 +425,7 @@ export default { } }, /** - * Formate time display + * Format time display * @param {Object} time * @return {String} Formatted time */ diff --git a/mindinsight/ui/src/components/radar-chart.vue b/mindinsight/ui/src/components/radar-chart.vue index c86484b9..2a485f1f 100644 --- a/mindinsight/ui/src/components/radar-chart.vue +++ b/mindinsight/ui/src/components/radar-chart.vue @@ -32,7 +32,7 @@ export default { option: {}, // The chart option instance: null, // The chart instance created by echarts init indicators: [], // The list of indicator in string - defaultRadius: '73%', // The dafault radius of radar + defaultRadius: '73%', // The default radius of radar defaultEWidth: 5, // The default width of emphasis width defaultLegendSetting: { padding: [0, 16], diff --git a/mindinsight/ui/src/components/scatter.vue b/mindinsight/ui/src/components/scatter.vue index 766609c8..44ea6c57 100644 --- a/mindinsight/ui/src/components/scatter.vue +++ b/mindinsight/ui/src/components/scatter.vue @@ -64,7 +64,7 @@ export default { }, methods: { /** - * formate Chart option + * format Chart option */ formateCharOption() { @@ -156,7 +156,7 @@ export default { }, /** - * formate Chart option + * format Chart option */ createChart() { diff --git a/mindinsight/ui/src/components/search-select.vue b/mindinsight/ui/src/components/search-select.vue index b55a2225..485f22bd 100644 --- a/mindinsight/ui/src/components/search-select.vue +++ b/mindinsight/ui/src/components/search-select.vue @@ -182,7 +182,7 @@ export default { }, methods: { /** - * The logic of calcualte values or value + * The logic of calculate values or value * @return {Array | String | Number} */ calValues() { diff --git a/mindinsight/ui/src/main.js b/mindinsight/ui/src/main.js index ecf83f64..ccfbb655 100644 --- a/mindinsight/ui/src/main.js +++ b/mindinsight/ui/src/main.js @@ -67,7 +67,7 @@ Vue.config.productionTip = false; /** * Check the browser version - * @return {Boolen} + * @return {Boolean} */ function isBrowserSupport() { const isChrome = navigator.userAgent.toLowerCase().match(/chrome/); diff --git a/mindinsight/ui/src/mixins/auto-update.vue b/mindinsight/ui/src/mixins/auto-update.vue index 5313283c..4f84a7bc 100644 --- a/mindinsight/ui/src/mixins/auto-update.vue +++ b/mindinsight/ui/src/mixins/auto-update.vue @@ -24,7 +24,7 @@ export default { computed: { /** * Global refresh - * @return {Boolen} + * @return {Boolean} */ isReload() { @@ -32,7 +32,7 @@ export default { }, /** * Auto refresh - * @return {Boolen} + * @return {Boolean} */ isTimeReload() { @@ -46,8 +46,8 @@ export default { watch: { /** * Listener global refresh - * @param {Boolen} newVal New value - * @param {Boolen} oldVal Old value + * @param {Boolean} newVal New value + * @param {Boolean} oldVal Old value */ isReload(newVal, oldVal) { @@ -62,8 +62,8 @@ export default { }, /** * Listener auto refresh - * @param {Boolen} newVal New value - * @param {Boolen} oldVal Old value + * @param {Boolean} newVal New value + * @param {Boolean} oldVal Old value */ isTimeReload(newVal, oldVal) { diff --git a/mindinsight/ui/src/mixins/common-graph.vue b/mindinsight/ui/src/mixins/common-graph.vue index dc9eb9d7..90088270 100644 --- a/mindinsight/ui/src/mixins/common-graph.vue +++ b/mindinsight/ui/src/mixins/common-graph.vue @@ -125,7 +125,7 @@ export default { /** * Tree linkage with graph * Collapse of current node - * @param {Obejct} name The name of the current node + * @param {Object} name The name of the current node */ nodeCollapseLinkage(name) { const node = this.$refs.tree.getNode(name.replace('_unfold', '')); diff --git a/mindinsight/ui/src/mixins/debugger-mixin.vue b/mindinsight/ui/src/mixins/debugger-mixin.vue index 7b5350f6..f0fdeb6e 100644 --- a/mindinsight/ui/src/mixins/debugger-mixin.vue +++ b/mindinsight/ui/src/mixins/debugger-mixin.vue @@ -409,7 +409,7 @@ export default { /** * Deal metadata * @param {Object} metadata metadata - * @param {Boolean} isQuery wheather to query tree data + * @param {Boolean} isQuery whether to query tree data */ dealMetadata(metadata) { if ( @@ -618,7 +618,7 @@ export default { ); }, /** - * Show orginal tree + * Show original tree */ loadOriginalTree() { this.node.childNodes = []; @@ -1546,8 +1546,8 @@ export default { }, /** * Tree linkage with graph Expand of current node - * @param {Obejct} nodes Data of children of current node - * @param {Obejct} name The name of the current node + * @param {Obeject} nodes Data of children of current node + * @param {Obeject} name The name of the current node */ nodeExpandLinkage(nodes, name) { if (nodes.length > this.nodesCountLimit) { diff --git a/mindinsight/ui/src/views/explain/saliency-map.vue b/mindinsight/ui/src/views/explain/saliency-map.vue index e9646e01..54536f8e 100644 --- a/mindinsight/ui/src/views/explain/saliency-map.vue +++ b/mindinsight/ui/src/views/explain/saliency-map.vue @@ -436,8 +436,8 @@ export default { this.imageDetails.imgShow = true; }, /** - * Request basic inforamtion of train - * @param {Object} params Parameters of the request basic inforamtion of train interface + * Request basic information of train + * @param {Object} params Parameters of the request basic information of train interface * @return {Object} */ queryTrainInfo(params) { @@ -475,7 +475,7 @@ export default { }); }, /** - * The complete logic of table update when any condiiton changed + * The complete logic of table update when any condition changed * @param {Object} params The main parameters * @param {Object} supParams The supplymentary parameters */ diff --git a/mindinsight/ui/src/views/explain/xai-metric.vue b/mindinsight/ui/src/views/explain/xai-metric.vue index 3fa18d29..dfd40960 100644 --- a/mindinsight/ui/src/views/explain/xai-metric.vue +++ b/mindinsight/ui/src/views/explain/xai-metric.vue @@ -726,7 +726,7 @@ export default { }; }, /** - * Clear commmon data + * Clear common data */ clearCllassifyCommonData() { this.fullDataDict = {}; diff --git a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue index 2904aacc..88abdd3c 100644 --- a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue @@ -538,7 +538,7 @@ export default { window.addEventListener('resize', this.resizeTrace, false); }, /** - * Get the data of proccess summary + * Get the data of process summary */ getProccessSummary() { const params = { diff --git a/mindinsight/ui/src/views/profiling-gpu/profiling.vue b/mindinsight/ui/src/views/profiling-gpu/profiling.vue index 1a52a0c1..d61bc888 100644 --- a/mindinsight/ui/src/views/profiling-gpu/profiling.vue +++ b/mindinsight/ui/src/views/profiling-gpu/profiling.vue @@ -110,7 +110,7 @@ export default { } }, /** - * When card mumber changed,request data again. + * When card number changed,request data again. */ selectValueChange() { const helperDiv = document.getElementById('helper-tips'); diff --git a/mindinsight/ui/src/views/profiling/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling/profiling-dashboard.vue index 8508b750..8b0c0cfe 100644 --- a/mindinsight/ui/src/views/profiling/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/profiling/profiling-dashboard.vue @@ -540,7 +540,7 @@ export default { window.addEventListener('resize', this.resizeTrace, false); }, /** - * Get the data of proccess summary + * Get the data of process summary */ getProccessSummary() { const params = { diff --git a/mindinsight/ui/src/views/train-manage/compare-plate.vue b/mindinsight/ui/src/views/train-manage/compare-plate.vue index 5df26ed9..5e6f0e93 100644 --- a/mindinsight/ui/src/views/train-manage/compare-plate.vue +++ b/mindinsight/ui/src/views/train-manage/compare-plate.vue @@ -363,7 +363,7 @@ export default { /** * Obtains data on a specified page - * @param {Boolen} noPageIndexChange // The page number does not change + * @param {Boolean} noPageIndexChange // The page number does not change */ getCurPageDataArr(noPageIndexChange) { @@ -905,7 +905,7 @@ export default { sampleObject.dataRemove = false; } } else { - // Creat chart + // Create chart sampleObject.charObj = echarts.init( document.getElementById(sampleObject.domId), null, diff --git a/mindinsight/ui/src/views/train-manage/graph.vue b/mindinsight/ui/src/views/train-manage/graph.vue index f6c24322..569b933f 100644 --- a/mindinsight/ui/src/views/train-manage/graph.vue +++ b/mindinsight/ui/src/views/train-manage/graph.vue @@ -648,8 +648,8 @@ export default { methods: { /** * Tree linkage with graph Expand of current node - * @param {Obejct} nodes Data of children of current node - * @param {Obejct} name The name of the current node + * @param {Obeject} nodes Data of children of current node + * @param {Obeject} name The name of the current node */ nodeExpandLinkage(nodes, name) { const curNodeData = nodes.map((val) => { diff --git a/mindinsight/ui/src/views/train-manage/histogram.vue b/mindinsight/ui/src/views/train-manage/histogram.vue index ed8fb737..eafad56d 100644 --- a/mindinsight/ui/src/views/train-manage/histogram.vue +++ b/mindinsight/ui/src/views/train-manage/histogram.vue @@ -1187,7 +1187,7 @@ export default { return data; }, /** - * Formate time display + * Format time display * @param {Number} value * @return {Number} Formatted number */ diff --git a/mindinsight/ui/src/views/train-manage/scalar-compare.vue b/mindinsight/ui/src/views/train-manage/scalar-compare.vue index f4278c61..60221425 100644 --- a/mindinsight/ui/src/views/train-manage/scalar-compare.vue +++ b/mindinsight/ui/src/views/train-manage/scalar-compare.vue @@ -975,7 +975,7 @@ export default { /** * Updating or creating a specified chart - * @param {Boolen} resetAnimate Restart the animation + * @param {Boolean} resetAnimate Restart the animation */ updateOrCreateChar(resetAnimate) { diff --git a/mindinsight/ui/src/views/train-manage/scalar.vue b/mindinsight/ui/src/views/train-manage/scalar.vue index edd3dcf8..d477283d 100644 --- a/mindinsight/ui/src/views/train-manage/scalar.vue +++ b/mindinsight/ui/src/views/train-manage/scalar.vue @@ -450,7 +450,7 @@ export default { /** * Obtains data on a specified page - * @param {Boolen} noPageIndexChange // The page number does not change + * @param {Boolean} noPageIndexChange // The page number does not change */ getCurPageDataArr(noPageIndexChange) { diff --git a/mindinsight/ui/src/views/train-manage/tensor.vue b/mindinsight/ui/src/views/train-manage/tensor.vue index 6b34d9da..62540ca6 100644 --- a/mindinsight/ui/src/views/train-manage/tensor.vue +++ b/mindinsight/ui/src/views/train-manage/tensor.vue @@ -209,7 +209,7 @@ export default { curDataType: 0, // Current data type curViewName: 1, // Current histogram view type curAxisName: 0, // Current histogran axis type - chartTipFlag: false, // Wheather to display tips of the histogram + chartTipFlag: false, // Whether to display tips of the histogram columnLimitNum: 1000, // Maximum number of columns is 1000 }; }, @@ -742,7 +742,7 @@ export default { }, 200); }, /** - * Formate absolute time + * Format absolute time * @param {String} time Time string * @return {String} String Formatted time */ @@ -978,7 +978,7 @@ export default { }, 500); }, /** - * Converts the original data formate to a histogram-recognizable formate + * Converts the original data format to a histogram-recognizable format * @param {Object} resData Original data * @return {Object} Formatted data */ diff --git a/mindinsight/ui/src/views/train-manage/training-dashboard.vue b/mindinsight/ui/src/views/train-manage/training-dashboard.vue index ab19085e..0f901ff9 100644 --- a/mindinsight/ui/src/views/train-manage/training-dashboard.vue +++ b/mindinsight/ui/src/views/train-manage/training-dashboard.vue @@ -334,7 +334,7 @@ export default { computed: { /** * Global Refresh - * @return {Boolen} + * @return {Boolean} */ isReload() { return this.$store.state.isReload; @@ -365,7 +365,7 @@ export default { }, /** * Listener auto refresh - * @param {Boolen} newVal new Value + * @param {Boolean} newVal new Value */ isTimeReload(newVal) { if (newVal) { @@ -779,7 +779,7 @@ export default { }); }, /** - * formate smooth data + * format smooth data * @param {Object} oriData Original data * @return {Object} */ @@ -812,7 +812,7 @@ export default { }, /** * Updating or Creating a Specified chart - * @param {Boolen} resetAnimate restart the animation + * @param {Boolean} resetAnimate restart the animation */ updateOrCreateChar(resetAnimate) { if (this.charObj) { diff --git a/tests/st/func/lineagemgr/collection/model/test_model_lineage.py b/tests/st/func/lineagemgr/collection/model/test_model_lineage.py index ba5b6277..b22e13c2 100644 --- a/tests/st/func/lineagemgr/collection/model/test_model_lineage.py +++ b/tests/st/func/lineagemgr/collection/model/test_model_lineage.py @@ -14,7 +14,7 @@ # ============================================================================ """ -Fuction: +Function: Test the lineage information collection module. Usage: pytest lineagemgr/collection/model/test_model_lineage.py diff --git a/tests/st/func/profiler/test_aicpu_analyser.py b/tests/st/func/profiler/test_aicpu_analyser.py index 55a2b426..5208043b 100644 --- a/tests/st/func/profiler/test_aicpu_analyser.py +++ b/tests/st/func/profiler/test_aicpu_analyser.py @@ -13,7 +13,7 @@ # limitations under the License. # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/st/func/profiler @@ -47,7 +47,7 @@ class TestAicpuAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query_aicpu_type(self): - """Test the function of querying AICPU operator type infomation.""" + """Test the function of querying AICPU operator type information.""" expect_result = { 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], 'object': [ @@ -67,7 +67,7 @@ class TestAicpuAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query_aicpu_detail(self): - """Test the function of querying AICPU operator type infomation.""" + """Test the function of querying AICPU operator type information.""" expect_result = { 'col_name': ['serial_number', 'op_type', 'total_time', 'dispatch_time', 'run_start', 'run_end'], diff --git a/tests/st/func/profiler/test_analyse.py b/tests/st/func/profiler/test_analyse.py index 2ac12dea..417e3160 100644 --- a/tests/st/func/profiler/test_analyse.py +++ b/tests/st/func/profiler/test_analyse.py @@ -14,7 +14,7 @@ # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/st/func/profiler diff --git a/tests/st/func/profiler/test_minddata_analyse.py b/tests/st/func/profiler/test_minddata_analyse.py index 8a2cdf13..5eab40e1 100644 --- a/tests/st/func/profiler/test_minddata_analyse.py +++ b/tests/st/func/profiler/test_minddata_analyse.py @@ -13,7 +13,7 @@ # limitations under the License. # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/st/func/profiler diff --git a/tests/st/func/profiler/test_minddata_pipeline_analyser.py b/tests/st/func/profiler/test_minddata_pipeline_analyser.py index 541e1a56..b3df9067 100644 --- a/tests/st/func/profiler/test_minddata_pipeline_analyser.py +++ b/tests/st/func/profiler/test_minddata_pipeline_analyser.py @@ -13,7 +13,7 @@ # limitations under the License. # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/st/func/profiler @@ -49,7 +49,7 @@ class TestMinddataPipelineAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query(self): - """Test the function of querying minddata pipeline infomation.""" + """Test the function of querying minddata pipeline information.""" expect_result = { 'col_name': [ 'op_id', 'op_type', 'output_queue_average_size', 'output_queue_length', @@ -79,7 +79,7 @@ class TestMinddataPipelineAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_get_op_and_parent_op_info(self): - """Test the function of the target operator and queue infomation.""" + """Test the function of the target operator and queue information.""" expect_result = { 'current_op': { 'op_id': 1, diff --git a/tests/st/func/profiler/test_op_analyser.py b/tests/st/func/profiler/test_op_analyser.py index d3e82dd4..7e78fb45 100644 --- a/tests/st/func/profiler/test_op_analyser.py +++ b/tests/st/func/profiler/test_op_analyser.py @@ -13,7 +13,7 @@ # limitations under the License. # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/st/func/profiler @@ -103,7 +103,7 @@ class TestOpAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query_aicore_type_1(self): - """Test the function of querying AICORE operator type infomation.""" + """Test the function of querying AICORE operator type information.""" expect_result = { 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], 'object': [ @@ -155,7 +155,7 @@ class TestOpAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query_aicore_type_2(self): - """Test the function of querying AICORE operator type infomation.""" + """Test the function of querying AICORE operator type information.""" expect_result = { 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], 'object': [ @@ -185,7 +185,7 @@ class TestOpAnalyser: @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training def test_query_aicore_detail_1(self): - """Test the function of querying AICORE operator detail infomation.""" + """Test the function of querying AICORE operator detail information.""" expect_result = OP_GATHER_V2_INFO condition = { 'filter_condition': { diff --git a/tests/ut/profiler/analyser/test_aicpu_analyser.py b/tests/ut/profiler/analyser/test_aicpu_analyser.py index df137182..a6a7781b 100644 --- a/tests/ut/profiler/analyser/test_aicpu_analyser.py +++ b/tests/ut/profiler/analyser/test_aicpu_analyser.py @@ -13,7 +13,7 @@ # limitations under the License. # ============================================================================ """ -Fuction: +Function: Test profiler to watch the performance of training. Usage: pytest tests/ut/func/profiler @@ -40,7 +40,7 @@ class TestAicpuAnalyser: 'aicpu_detail', self.profiler, '1') def test_query_aicpu_type(self): - """Test the function of querying AICPU operator type infomation.""" + """Test the function of querying AICPU operator type information.""" expect_result = { 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], 'object': [ @@ -59,7 +59,7 @@ class TestAicpuAnalyser: assert expect_result == result def test_query_aicpu_detail(self): - """Test the function of querying AICPU operator detail infomation.""" + """Test the function of querying AICPU operator detail information.""" expect_result = { 'col_name': ['serial_number', 'op_type', 'total_time', 'dispatch_time', 'run_start', 'run_end'], diff --git a/tests/utils/lineage_writer/_summary_record.py b/tests/utils/lineage_writer/_summary_record.py index dc5be5e0..c0bab1a7 100644 --- a/tests/utils/lineage_writer/_summary_record.py +++ b/tests/utils/lineage_writer/_summary_record.py @@ -149,7 +149,7 @@ class LineageSummary: def record_evaluation_lineage(self, run_context_args): """ - Record evaluation_lineage to sumamry log. + Record evaluation_lineage to summary log. Args: run_context_args (dict): The evaluation lineage info to log.