From: @xsmq Reviewed-by: @ouwenchang,@wenkai_dist Signed-off-by: @wenkai_disttags/v1.2.0-rc1
| @@ -47,7 +47,7 @@ Provide explanations and their benchmarks for image classification deep CNN mode | |||||
| ### Profiler | ### 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 | ### Model Explanation | ||||
| @@ -267,7 +267,7 @@ def start(): | |||||
| stderr=subprocess.STDOUT | stderr=subprocess.STDOUT | ||||
| ) | ) | ||||
| # sleep 1 second for gunicorn appplication to load modules | |||||
| # sleep 1 second for gunicorn application to load modules | |||||
| time.sleep(1) | time.sleep(1) | ||||
| # check if gunicorn application is running | # check if gunicorn application is running | ||||
| @@ -63,7 +63,7 @@ class DataLoader: | |||||
| Get events data from log file. | Get events data from log file. | ||||
| Returns: | Returns: | ||||
| EventsData, indiciates events data. | |||||
| EventsData, indicates events data. | |||||
| """ | """ | ||||
| return self._loader.get_events_data() | return self._loader.get_events_data() | ||||
| @@ -1016,7 +1016,7 @@ class DataManager: | |||||
| @status.setter | @status.setter | ||||
| def status(self, status): | def status(self, status): | ||||
| """Set data manger status.""" | |||||
| """Set data manager status.""" | |||||
| self._status = status | self._status = status | ||||
| def cache_train_job(self, train_id): | def cache_train_job(self, train_id): | ||||
| @@ -451,7 +451,7 @@ class _SummaryParser(_Parser): | |||||
| event_crc_str = '' | event_crc_str = '' | ||||
| if len(event_str) != event_len or len(event_crc_str) != CRC_STR_SIZE: | 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): | if not crc32.CheckValueAgainstData(event_crc_str, event_str, event_len): | ||||
| raise exceptions.CRCFailedError("The event string crc is incorrect.") | raise exceptions.CRCFailedError("The event string crc is incorrect.") | ||||
| @@ -254,7 +254,7 @@ message ModelProto { | |||||
| // The parameterized graph that is evaluated to execute the model. | // The parameterized graph that is evaluated to execute the model. | ||||
| optional GraphProto graph = 4; | optional GraphProto graph = 4; | ||||
| // metadata info of opeartors | |||||
| // metadata info of operators | |||||
| optional OperatorSetProto metadata_operators = 5; | optional OperatorSetProto metadata_operators = 5; | ||||
| }; | }; | ||||
| @@ -19,7 +19,7 @@ ByteStr = Union[bytes, str] | |||||
| def CheckValueAgainstData(crc_value: ByteStr, data: ByteStr, size: int) -> bool: | 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: | def GetMaskCrc32cValue(data: ByteStr, n: int) -> int: | ||||
| @@ -142,7 +142,7 @@ def get_img_mimetype(img_data): | |||||
| def get_train_id(request): | 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: | Args: | ||||
| request (FlaskRequest): Http request instance. | request (FlaskRequest): Http request instance. | ||||
| @@ -161,7 +161,7 @@ def get_train_id(request): | |||||
| def get_profiler_dir(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: | Args: | ||||
| request (FlaskRequest): Http request instance. | request (FlaskRequest): Http request instance. | ||||
| @@ -180,7 +180,7 @@ def get_profiler_dir(request): | |||||
| def unquote_args(request, arg_name): | 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: | Args: | ||||
| request (FlaskRequest): Http request instance. | request (FlaskRequest): Http request instance. | ||||
| @@ -200,7 +200,7 @@ def unquote_args(request, arg_name): | |||||
| def get_device_id(request): | 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: | Args: | ||||
| request (FlaskRequest): Http request instance. | request (FlaskRequest): Http request instance. | ||||
| @@ -472,7 +472,7 @@ class DebuggerGrpcServer(grpc_server_base.EventListenerServicer): | |||||
| @debugger_wrap | @debugger_wrap | ||||
| def SendWatchpointHits(self, request_iterator, context): | def SendWatchpointHits(self, request_iterator, context): | ||||
| """Send watchpoint hits info DebuggerCache.""" | """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() | self._old_run_cmd.clear() | ||||
| if self._cache_store.get_stream_handler(Streams.METADATA).state == ServerStatus.RUNNING.value: | 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 | # if the client session is running a script, all the cached command should be cleared | ||||
| @@ -255,7 +255,7 @@ message ModelProto { | |||||
| // The parameterized graph that is evaluated to execute the model. | // The parameterized graph that is evaluated to execute the model. | ||||
| optional GraphProto graph = 4; | optional GraphProto graph = 4; | ||||
| // metadata info of opeartors | |||||
| // metadata info of operators | |||||
| optional OperatorSetProto metadata_operators = 5; | optional OperatorSetProto metadata_operators = 5; | ||||
| }; | }; | ||||
| @@ -319,4 +319,4 @@ message TensorProto { | |||||
| // If the tensor name should be truncated. | // If the tensor name should be truncated. | ||||
| optional bool truncate = 8; | optional bool truncate = 8; | ||||
| } | |||||
| } | |||||
| @@ -349,7 +349,7 @@ class TensorHandler(StreamHandlerBase): | |||||
| tensor_info = curr_tensor.get_basic_info() | tensor_info = curr_tensor.get_basic_info() | ||||
| tensor_info.pop('has_prev_step') | tensor_info.pop('has_prev_step') | ||||
| tensor_info.pop('value') | tensor_info.pop('value') | ||||
| # calculate tensor comparision object | |||||
| # calculate tensor comparison object | |||||
| tensor_comparison = curr_tensor.tensor_comparison | tensor_comparison = curr_tensor.tensor_comparison | ||||
| if not tensor_comparison or tensor_comparison.tolerance != tolerance: | if not tensor_comparison or tensor_comparison.tolerance != tolerance: | ||||
| if curr_tensor.value.shape != prev_tensor.value.shape: | if curr_tensor.value.shape != prev_tensor.value.shape: | ||||
| @@ -369,7 +369,7 @@ class TensorHandler(StreamHandlerBase): | |||||
| tensor_info['diff'] = result.tolist() | tensor_info['diff'] = result.tolist() | ||||
| elif isinstance(curr_tensor_slice, str): | elif isinstance(curr_tensor_slice, str): | ||||
| tensor_info['diff'] = curr_tensor_slice | tensor_info['diff'] = curr_tensor_slice | ||||
| # add comparision statistics | |||||
| # add comparison statistics | |||||
| tensor_info.update(self._get_comparison_statistics(curr_tensor, prev_tensor)) | tensor_info.update(self._get_comparison_statistics(curr_tensor, prev_tensor)) | ||||
| reply = {'tensor_value': tensor_info} | reply = {'tensor_value': tensor_info} | ||||
| return reply | return reply | ||||
| @@ -19,7 +19,7 @@ from mindinsight.mindconverter.graph_based_converter.common.code_fragment import | |||||
| class FragmentHandler: | class FragmentHandler: | ||||
| """ | """ | ||||
| Define a handler to process the infomation contained by Fragment. | |||||
| Define a handler to process the information contained by Fragment. | |||||
| Args: | Args: | ||||
| fragment (NewFragment): The refactored fragment class. | fragment (NewFragment): The refactored fragment class. | ||||
| @@ -55,7 +55,7 @@ class MinddataAnalyser(BaseAnalyser): | |||||
| if file_path: | if file_path: | ||||
| file_path = validate_and_normalize_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: | with open(file_path) as data_file: | ||||
| for line in data_file.readlines(): | for line in data_file.readlines(): | ||||
| node_info = line.split() | node_info = line.split() | ||||
| @@ -119,7 +119,7 @@ class MinddataAnalyser(BaseAnalyser): | |||||
| if file_path: | if file_path: | ||||
| file_path = validate_and_normalize_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: | with open(file_path) as data_file: | ||||
| for line in data_file.readlines(): | for line in data_file.readlines(): | ||||
| op_info = line.split() | op_info = line.split() | ||||
| @@ -117,7 +117,7 @@ class MinddataPipelineAnalyser(BaseAnalyser): | |||||
| self._file_name_pipeline.format(self._device_id) | self._file_name_pipeline.format(self._device_id) | ||||
| ) | ) | ||||
| pipeline_file_path = validate_and_normalize_path( | 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): | if not os.path.isfile(pipeline_file_path): | ||||
| logger.warning('The file <%s> does not exist.', pipeline_file_path) | logger.warning('The file <%s> does not exist.', pipeline_file_path) | ||||
| return | return | ||||
| @@ -95,7 +95,7 @@ class StepTraceAnalyser(BaseAnalyser): | |||||
| log.error("Failed to find parsed trace time file.") | log.error("Failed to find parsed trace time file.") | ||||
| raise ProfilerFileNotFoundException('parsed step trace time file') | raise ProfilerFileNotFoundException('parsed step trace time file') | ||||
| file_path = validate_and_normalize_path( | 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: | with open(file_path, 'r') as handle: | ||||
| csv_reader = csv.reader(handle) | csv_reader = csv.reader(handle) | ||||
| self.__column__ = next(csv_reader) | self.__column__ = next(csv_reader) | ||||
| @@ -108,7 +108,7 @@ class StepTraceAnalyser(BaseAnalyser): | |||||
| """Load point info.""" | """Load point info.""" | ||||
| file_path = os.path.join(self._profiling_dir, 'step_trace_point_info.json') | file_path = os.path.join(self._profiling_dir, 'step_trace_point_info.json') | ||||
| file_path = validate_and_normalize_path( | 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): | if os.path.isfile(file_path): | ||||
| with open(file_path, 'r', encoding='utf-8') as file: | with open(file_path, 'r', encoding='utf-8') as file: | ||||
| try: | try: | ||||
| @@ -306,7 +306,7 @@ class StepTraceAnalyser(BaseAnalyser): | |||||
| def _construct_reduce_lines(self, row_info_dict): | def _construct_reduce_lines(self, row_info_dict): | ||||
| """ | """ | ||||
| Contruct first line in detailed graph. | |||||
| Construct first line in detailed graph. | |||||
| Args: | Args: | ||||
| row_info_dict (dict): Step trace information. | row_info_dict (dict): Step trace information. | ||||
| @@ -125,7 +125,7 @@ export default { | |||||
| default: 'value', | default: 'value', | ||||
| }, | }, | ||||
| // Maximum number of columns | // 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: { | columnLimitNum: { | ||||
| type: Number, | type: Number, | ||||
| default: -1, | default: -1, | ||||
| @@ -140,16 +140,16 @@ export default { | |||||
| filterArr: [], // Dimension selection array | filterArr: [], // Dimension selection array | ||||
| formateData: [], // Formatted data | formateData: [], // Formatted data | ||||
| formateArr: [], // Formatted array | formateArr: [], // Formatted array | ||||
| statistics: {}, // Object contain maximun and minimun | |||||
| statistics: {}, // Object contain maximum and minimum | |||||
| accuracy: 10, // Accuracy value | accuracy: 10, // Accuracy value | ||||
| incorrectData: false, // Wheather the dimension is correctly selected | |||||
| incorrectData: false, // Whether the dimension is correctly selected | |||||
| updated: false, // Updated | 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 | requestError: false, // Exceeded the specification | ||||
| errorMsg: '', // Error message | errorMsg: '', // Error message | ||||
| viewResizeFlag: false, // Size reset flag | viewResizeFlag: false, // Size reset flag | ||||
| // Accuray options | |||||
| // Accuracy options | |||||
| accuracyArr: [ | accuracyArr: [ | ||||
| {label: 0, value: 0}, | {label: 0, value: 0}, | ||||
| {label: 1, value: 1}, | {label: 1, value: 1}, | ||||
| @@ -563,9 +563,9 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Updating Table Data | * Updating Table Data | ||||
| * @param {Boolean} newDataFlag Wheather data is updated | |||||
| * @param {Boolean} newDataFlag Whether data is updated | |||||
| * @param {Array} dimension Array of dimension | * @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 | * @param {String} filterStr String of dimension selection | ||||
| */ | */ | ||||
| updateGridData(newDataFlag, dimension, statistics, filterStr) { | updateGridData(newDataFlag, dimension, statistics, filterStr) { | ||||
| @@ -119,7 +119,7 @@ export default { | |||||
| default: false, | default: false, | ||||
| }, | }, | ||||
| // Maximum number of columns | // 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: { | columnLimitNum: { | ||||
| type: Number, | type: Number, | ||||
| default: -1, | default: -1, | ||||
| @@ -134,16 +134,16 @@ export default { | |||||
| filterArr: [], // Dimension selection array | filterArr: [], // Dimension selection array | ||||
| formateData: [], // Formatted data | formateData: [], // Formatted data | ||||
| formateArr: [], // Formatted array | formateArr: [], // Formatted array | ||||
| statistics: {}, // Object contain maximun and minimun | |||||
| statistics: {}, // Object contain maximum and minimum | |||||
| accuracy: 5, // Accuracy value | accuracy: 5, // Accuracy value | ||||
| incorrectData: false, // Wheather the dimension is correctly selected | |||||
| incorrectData: false, // Whether the dimension is correctly selected | |||||
| updated: false, // Updated | 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 | requestError: false, // Exceeded the specification | ||||
| errorMsg: '', // Error message | errorMsg: '', // Error message | ||||
| viewResizeFlag: false, // Size reset flag | viewResizeFlag: false, // Size reset flag | ||||
| // Accuray options | |||||
| // Accuracy options | |||||
| accuracyArr: [ | accuracyArr: [ | ||||
| {label: 0, value: 0}, | {label: 0, value: 0}, | ||||
| {label: 1, value: 1}, | {label: 1, value: 1}, | ||||
| @@ -512,9 +512,9 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Updating Table Data | * Updating Table Data | ||||
| * @param {Boolean} newDataFlag Wheather data is updated | |||||
| * @param {Boolean} newDataFlag Whether data is updated | |||||
| * @param {Array} dimension Array of dimension | * @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 | * @param {String} filterStr String of dimension selection | ||||
| */ | */ | ||||
| updateGridData(newDataFlag, dimension, statistics, filterStr) { | updateGridData(newDataFlag, dimension, statistics, filterStr) { | ||||
| @@ -66,7 +66,7 @@ export default { | |||||
| updated: false, // Updated | updated: false, // Updated | ||||
| zrDrawElement: {hoverDots: []}, | zrDrawElement: {hoverDots: []}, | ||||
| zr: null, | 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 | requestError: false, // Exceeded the specification | ||||
| errorMsg: '', // Error message | errorMsg: '', // Error message | ||||
| viewResizeFlag: false, // Size reset flag | viewResizeFlag: false, // Size reset flag | ||||
| @@ -174,7 +174,7 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate chart option | |||||
| * Format chart option | |||||
| * @return {Object} chatr option | * @return {Object} chatr option | ||||
| */ | */ | ||||
| formatCharOption() { | formatCharOption() { | ||||
| @@ -387,7 +387,7 @@ export default { | |||||
| return this.charObj.convertToPixel('grid', pt); | return this.charObj.convertToPixel('grid', pt); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate Y coordinate display | |||||
| * Format Y coordinate display | |||||
| * @param {Number} value | * @param {Number} value | ||||
| * @return {Object} | * @return {Object} | ||||
| */ | */ | ||||
| @@ -412,7 +412,7 @@ export default { | |||||
| return data; | return data; | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate time display | |||||
| * Format time display | |||||
| * @param {Number} value | * @param {Number} value | ||||
| * @return {Number} Formatted number | * @return {Number} Formatted number | ||||
| */ | */ | ||||
| @@ -425,7 +425,7 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate time display | |||||
| * Format time display | |||||
| * @param {Object} time | * @param {Object} time | ||||
| * @return {String} Formatted time | * @return {String} Formatted time | ||||
| */ | */ | ||||
| @@ -32,7 +32,7 @@ export default { | |||||
| option: {}, // The chart option | option: {}, // The chart option | ||||
| instance: null, // The chart instance created by echarts init | instance: null, // The chart instance created by echarts init | ||||
| indicators: [], // The list of indicator in string | 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 | defaultEWidth: 5, // The default width of emphasis width | ||||
| defaultLegendSetting: { | defaultLegendSetting: { | ||||
| padding: [0, 16], | padding: [0, 16], | ||||
| @@ -64,7 +64,7 @@ export default { | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| /** | /** | ||||
| * formate Chart option | |||||
| * format Chart option | |||||
| */ | */ | ||||
| formateCharOption() { | formateCharOption() { | ||||
| @@ -156,7 +156,7 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * formate Chart option | |||||
| * format Chart option | |||||
| */ | */ | ||||
| createChart() { | createChart() { | ||||
| @@ -182,7 +182,7 @@ export default { | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| /** | /** | ||||
| * The logic of calcualte values or value | |||||
| * The logic of calculate values or value | |||||
| * @return {Array | String | Number} | * @return {Array | String | Number} | ||||
| */ | */ | ||||
| calValues() { | calValues() { | ||||
| @@ -67,7 +67,7 @@ Vue.config.productionTip = false; | |||||
| /** | /** | ||||
| * Check the browser version | * Check the browser version | ||||
| * @return {Boolen} | |||||
| * @return {Boolean} | |||||
| */ | */ | ||||
| function isBrowserSupport() { | function isBrowserSupport() { | ||||
| const isChrome = navigator.userAgent.toLowerCase().match(/chrome/); | const isChrome = navigator.userAgent.toLowerCase().match(/chrome/); | ||||
| @@ -24,7 +24,7 @@ export default { | |||||
| computed: { | computed: { | ||||
| /** | /** | ||||
| * Global refresh | * Global refresh | ||||
| * @return {Boolen} | |||||
| * @return {Boolean} | |||||
| */ | */ | ||||
| isReload() { | isReload() { | ||||
| @@ -32,7 +32,7 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Auto refresh | * Auto refresh | ||||
| * @return {Boolen} | |||||
| * @return {Boolean} | |||||
| */ | */ | ||||
| isTimeReload() { | isTimeReload() { | ||||
| @@ -46,8 +46,8 @@ export default { | |||||
| watch: { | watch: { | ||||
| /** | /** | ||||
| * Listener global refresh | * 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) { | isReload(newVal, oldVal) { | ||||
| @@ -62,8 +62,8 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Listener auto refresh | * 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) { | isTimeReload(newVal, oldVal) { | ||||
| @@ -125,7 +125,7 @@ export default { | |||||
| /** | /** | ||||
| * Tree linkage with graph | * Tree linkage with graph | ||||
| * Collapse of current node | * Collapse of current node | ||||
| * @param {Obejct} name The name of the current node | |||||
| * @param {Object} name The name of the current node | |||||
| */ | */ | ||||
| nodeCollapseLinkage(name) { | nodeCollapseLinkage(name) { | ||||
| const node = this.$refs.tree.getNode(name.replace('_unfold', '')); | const node = this.$refs.tree.getNode(name.replace('_unfold', '')); | ||||
| @@ -409,7 +409,7 @@ export default { | |||||
| /** | /** | ||||
| * Deal metadata | * Deal metadata | ||||
| * @param {Object} metadata metadata | * @param {Object} metadata metadata | ||||
| * @param {Boolean} isQuery wheather to query tree data | |||||
| * @param {Boolean} isQuery whether to query tree data | |||||
| */ | */ | ||||
| dealMetadata(metadata) { | dealMetadata(metadata) { | ||||
| if ( | if ( | ||||
| @@ -618,7 +618,7 @@ export default { | |||||
| ); | ); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Show orginal tree | |||||
| * Show original tree | |||||
| */ | */ | ||||
| loadOriginalTree() { | loadOriginalTree() { | ||||
| this.node.childNodes = []; | this.node.childNodes = []; | ||||
| @@ -1546,8 +1546,8 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Tree linkage with graph Expand of current node | * 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) { | nodeExpandLinkage(nodes, name) { | ||||
| if (nodes.length > this.nodesCountLimit) { | if (nodes.length > this.nodesCountLimit) { | ||||
| @@ -436,8 +436,8 @@ export default { | |||||
| this.imageDetails.imgShow = true; | 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} | * @return {Object} | ||||
| */ | */ | ||||
| queryTrainInfo(params) { | 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} params The main parameters | ||||
| * @param {Object} supParams The supplymentary parameters | * @param {Object} supParams The supplymentary parameters | ||||
| */ | */ | ||||
| @@ -726,7 +726,7 @@ export default { | |||||
| }; | }; | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Clear commmon data | |||||
| * Clear common data | |||||
| */ | */ | ||||
| clearCllassifyCommonData() { | clearCllassifyCommonData() { | ||||
| this.fullDataDict = {}; | this.fullDataDict = {}; | ||||
| @@ -538,7 +538,7 @@ export default { | |||||
| window.addEventListener('resize', this.resizeTrace, false); | window.addEventListener('resize', this.resizeTrace, false); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Get the data of proccess summary | |||||
| * Get the data of process summary | |||||
| */ | */ | ||||
| getProccessSummary() { | getProccessSummary() { | ||||
| const params = { | const params = { | ||||
| @@ -110,7 +110,7 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| /** | /** | ||||
| * When card mumber changed,request data again. | |||||
| * When card number changed,request data again. | |||||
| */ | */ | ||||
| selectValueChange() { | selectValueChange() { | ||||
| const helperDiv = document.getElementById('helper-tips'); | const helperDiv = document.getElementById('helper-tips'); | ||||
| @@ -540,7 +540,7 @@ export default { | |||||
| window.addEventListener('resize', this.resizeTrace, false); | window.addEventListener('resize', this.resizeTrace, false); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Get the data of proccess summary | |||||
| * Get the data of process summary | |||||
| */ | */ | ||||
| getProccessSummary() { | getProccessSummary() { | ||||
| const params = { | const params = { | ||||
| @@ -363,7 +363,7 @@ export default { | |||||
| /** | /** | ||||
| * Obtains data on a specified page | * 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) { | getCurPageDataArr(noPageIndexChange) { | ||||
| @@ -905,7 +905,7 @@ export default { | |||||
| sampleObject.dataRemove = false; | sampleObject.dataRemove = false; | ||||
| } | } | ||||
| } else { | } else { | ||||
| // Creat chart | |||||
| // Create chart | |||||
| sampleObject.charObj = echarts.init( | sampleObject.charObj = echarts.init( | ||||
| document.getElementById(sampleObject.domId), | document.getElementById(sampleObject.domId), | ||||
| null, | null, | ||||
| @@ -648,8 +648,8 @@ export default { | |||||
| methods: { | methods: { | ||||
| /** | /** | ||||
| * Tree linkage with graph Expand of current node | * 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) { | nodeExpandLinkage(nodes, name) { | ||||
| const curNodeData = nodes.map((val) => { | const curNodeData = nodes.map((val) => { | ||||
| @@ -1187,7 +1187,7 @@ export default { | |||||
| return data; | return data; | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate time display | |||||
| * Format time display | |||||
| * @param {Number} value | * @param {Number} value | ||||
| * @return {Number} Formatted number | * @return {Number} Formatted number | ||||
| */ | */ | ||||
| @@ -975,7 +975,7 @@ export default { | |||||
| /** | /** | ||||
| * Updating or creating a specified chart | * Updating or creating a specified chart | ||||
| * @param {Boolen} resetAnimate Restart the animation | |||||
| * @param {Boolean} resetAnimate Restart the animation | |||||
| */ | */ | ||||
| updateOrCreateChar(resetAnimate) { | updateOrCreateChar(resetAnimate) { | ||||
| @@ -450,7 +450,7 @@ export default { | |||||
| /** | /** | ||||
| * Obtains data on a specified page | * 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) { | getCurPageDataArr(noPageIndexChange) { | ||||
| @@ -209,7 +209,7 @@ export default { | |||||
| curDataType: 0, // Current data type | curDataType: 0, // Current data type | ||||
| curViewName: 1, // Current histogram view type | curViewName: 1, // Current histogram view type | ||||
| curAxisName: 0, // Current histogran axis 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 | columnLimitNum: 1000, // Maximum number of columns is 1000 | ||||
| }; | }; | ||||
| }, | }, | ||||
| @@ -742,7 +742,7 @@ export default { | |||||
| }, 200); | }, 200); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * Formate absolute time | |||||
| * Format absolute time | |||||
| * @param {String} time Time string | * @param {String} time Time string | ||||
| * @return {String} String Formatted time | * @return {String} String Formatted time | ||||
| */ | */ | ||||
| @@ -978,7 +978,7 @@ export default { | |||||
| }, 500); | }, 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 | * @param {Object} resData Original data | ||||
| * @return {Object} Formatted data | * @return {Object} Formatted data | ||||
| */ | */ | ||||
| @@ -334,7 +334,7 @@ export default { | |||||
| computed: { | computed: { | ||||
| /** | /** | ||||
| * Global Refresh | * Global Refresh | ||||
| * @return {Boolen} | |||||
| * @return {Boolean} | |||||
| */ | */ | ||||
| isReload() { | isReload() { | ||||
| return this.$store.state.isReload; | return this.$store.state.isReload; | ||||
| @@ -365,7 +365,7 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Listener auto refresh | * Listener auto refresh | ||||
| * @param {Boolen} newVal new Value | |||||
| * @param {Boolean} newVal new Value | |||||
| */ | */ | ||||
| isTimeReload(newVal) { | isTimeReload(newVal) { | ||||
| if (newVal) { | if (newVal) { | ||||
| @@ -779,7 +779,7 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| /** | /** | ||||
| * formate smooth data | |||||
| * format smooth data | |||||
| * @param {Object} oriData Original data | * @param {Object} oriData Original data | ||||
| * @return {Object} | * @return {Object} | ||||
| */ | */ | ||||
| @@ -812,7 +812,7 @@ export default { | |||||
| }, | }, | ||||
| /** | /** | ||||
| * Updating or Creating a Specified chart | * Updating or Creating a Specified chart | ||||
| * @param {Boolen} resetAnimate restart the animation | |||||
| * @param {Boolean} resetAnimate restart the animation | |||||
| */ | */ | ||||
| updateOrCreateChar(resetAnimate) { | updateOrCreateChar(resetAnimate) { | ||||
| if (this.charObj) { | if (this.charObj) { | ||||
| @@ -14,7 +14,7 @@ | |||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test the lineage information collection module. | Test the lineage information collection module. | ||||
| Usage: | Usage: | ||||
| pytest lineagemgr/collection/model/test_model_lineage.py | pytest lineagemgr/collection/model/test_model_lineage.py | ||||
| @@ -13,7 +13,7 @@ | |||||
| # limitations under the License. | # limitations under the License. | ||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/st/func/profiler | pytest tests/st/func/profiler | ||||
| @@ -47,7 +47,7 @@ class TestAicpuAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query_aicpu_type(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | ||||
| 'object': [ | 'object': [ | ||||
| @@ -67,7 +67,7 @@ class TestAicpuAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query_aicpu_detail(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['serial_number', 'op_type', 'total_time', | 'col_name': ['serial_number', 'op_type', 'total_time', | ||||
| 'dispatch_time', 'run_start', 'run_end'], | 'dispatch_time', 'run_start', 'run_end'], | ||||
| @@ -14,7 +14,7 @@ | |||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/st/func/profiler | pytest tests/st/func/profiler | ||||
| @@ -13,7 +13,7 @@ | |||||
| # limitations under the License. | # limitations under the License. | ||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/st/func/profiler | pytest tests/st/func/profiler | ||||
| @@ -13,7 +13,7 @@ | |||||
| # limitations under the License. | # limitations under the License. | ||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/st/func/profiler | pytest tests/st/func/profiler | ||||
| @@ -49,7 +49,7 @@ class TestMinddataPipelineAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query(self): | def test_query(self): | ||||
| """Test the function of querying minddata pipeline infomation.""" | |||||
| """Test the function of querying minddata pipeline information.""" | |||||
| expect_result = { | expect_result = { | ||||
| 'col_name': [ | 'col_name': [ | ||||
| 'op_id', 'op_type', 'output_queue_average_size', 'output_queue_length', | '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_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_get_op_and_parent_op_info(self): | 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 = { | expect_result = { | ||||
| 'current_op': { | 'current_op': { | ||||
| 'op_id': 1, | 'op_id': 1, | ||||
| @@ -13,7 +13,7 @@ | |||||
| # limitations under the License. | # limitations under the License. | ||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/st/func/profiler | pytest tests/st/func/profiler | ||||
| @@ -103,7 +103,7 @@ class TestOpAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query_aicore_type_1(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | ||||
| 'object': [ | 'object': [ | ||||
| @@ -155,7 +155,7 @@ class TestOpAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query_aicore_type_2(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | ||||
| 'object': [ | 'object': [ | ||||
| @@ -185,7 +185,7 @@ class TestOpAnalyser: | |||||
| @pytest.mark.platform_x86_gpu_training | @pytest.mark.platform_x86_gpu_training | ||||
| @pytest.mark.platform_x86_ascend_training | @pytest.mark.platform_x86_ascend_training | ||||
| def test_query_aicore_detail_1(self): | 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 | expect_result = OP_GATHER_V2_INFO | ||||
| condition = { | condition = { | ||||
| 'filter_condition': { | 'filter_condition': { | ||||
| @@ -13,7 +13,7 @@ | |||||
| # limitations under the License. | # limitations under the License. | ||||
| # ============================================================================ | # ============================================================================ | ||||
| """ | """ | ||||
| Fuction: | |||||
| Function: | |||||
| Test profiler to watch the performance of training. | Test profiler to watch the performance of training. | ||||
| Usage: | Usage: | ||||
| pytest tests/ut/func/profiler | pytest tests/ut/func/profiler | ||||
| @@ -40,7 +40,7 @@ class TestAicpuAnalyser: | |||||
| 'aicpu_detail', self.profiler, '1') | 'aicpu_detail', self.profiler, '1') | ||||
| def test_query_aicpu_type(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | 'col_name': ['op_type', 'execution_time', 'execution_frequency', 'percent'], | ||||
| 'object': [ | 'object': [ | ||||
| @@ -59,7 +59,7 @@ class TestAicpuAnalyser: | |||||
| assert expect_result == result | assert expect_result == result | ||||
| def test_query_aicpu_detail(self): | 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 = { | expect_result = { | ||||
| 'col_name': ['serial_number', 'op_type', 'total_time', | 'col_name': ['serial_number', 'op_type', 'total_time', | ||||
| 'dispatch_time', 'run_start', 'run_end'], | 'dispatch_time', 'run_start', 'run_end'], | ||||
| @@ -149,7 +149,7 @@ class LineageSummary: | |||||
| def record_evaluation_lineage(self, run_context_args): | def record_evaluation_lineage(self, run_context_args): | ||||
| """ | """ | ||||
| Record evaluation_lineage to sumamry log. | |||||
| Record evaluation_lineage to summary log. | |||||
| Args: | Args: | ||||
| run_context_args (dict): The evaluation lineage info to log. | run_context_args (dict): The evaluation lineage info to log. | ||||