Browse Source

!1141 fix codespell error

From: @xsmq
Reviewed-by: @ouwenchang,@wenkai_dist
Signed-off-by: @wenkai_dist
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
db5ff53d87
45 changed files with 98 additions and 98 deletions
  1. +1
    -1
      RELEASE.md
  2. +1
    -1
      mindinsight/backend/run.py
  3. +1
    -1
      mindinsight/datavisual/data_transform/data_loader.py
  4. +1
    -1
      mindinsight/datavisual/data_transform/data_manager.py
  5. +1
    -1
      mindinsight/datavisual/data_transform/ms_data_loader.py
  6. +1
    -1
      mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto
  7. +1
    -1
      mindinsight/datavisual/utils/crc32/__init__.pyi
  8. +4
    -4
      mindinsight/datavisual/utils/tools.py
  9. +1
    -1
      mindinsight/debugger/debugger_grpc_server.py
  10. +2
    -2
      mindinsight/debugger/proto/ms_graph.proto
  11. +2
    -2
      mindinsight/debugger/stream_handler/tensor_handler.py
  12. +1
    -1
      mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py
  13. +2
    -2
      mindinsight/profiler/analyser/minddata_analyser.py
  14. +1
    -1
      mindinsight/profiler/analyser/minddata_pipeline_analyser.py
  15. +3
    -3
      mindinsight/profiler/analyser/step_trace_analyser.py
  16. +8
    -8
      mindinsight/ui/src/components/debugger-grid-table-simple.vue
  17. +8
    -8
      mindinsight/ui/src/components/grid-table-simple.vue
  18. +5
    -5
      mindinsight/ui/src/components/histogram-unit.vue
  19. +1
    -1
      mindinsight/ui/src/components/radar-chart.vue
  20. +2
    -2
      mindinsight/ui/src/components/scatter.vue
  21. +1
    -1
      mindinsight/ui/src/components/search-select.vue
  22. +1
    -1
      mindinsight/ui/src/main.js
  23. +6
    -6
      mindinsight/ui/src/mixins/auto-update.vue
  24. +1
    -1
      mindinsight/ui/src/mixins/common-graph.vue
  25. +4
    -4
      mindinsight/ui/src/mixins/debugger-mixin.vue
  26. +3
    -3
      mindinsight/ui/src/views/explain/saliency-map.vue
  27. +1
    -1
      mindinsight/ui/src/views/explain/xai-metric.vue
  28. +1
    -1
      mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
  29. +1
    -1
      mindinsight/ui/src/views/profiling-gpu/profiling.vue
  30. +1
    -1
      mindinsight/ui/src/views/profiling/profiling-dashboard.vue
  31. +2
    -2
      mindinsight/ui/src/views/train-manage/compare-plate.vue
  32. +2
    -2
      mindinsight/ui/src/views/train-manage/graph.vue
  33. +1
    -1
      mindinsight/ui/src/views/train-manage/histogram.vue
  34. +1
    -1
      mindinsight/ui/src/views/train-manage/scalar-compare.vue
  35. +1
    -1
      mindinsight/ui/src/views/train-manage/scalar.vue
  36. +3
    -3
      mindinsight/ui/src/views/train-manage/tensor.vue
  37. +4
    -4
      mindinsight/ui/src/views/train-manage/training-dashboard.vue
  38. +1
    -1
      tests/st/func/lineagemgr/collection/model/test_model_lineage.py
  39. +3
    -3
      tests/st/func/profiler/test_aicpu_analyser.py
  40. +1
    -1
      tests/st/func/profiler/test_analyse.py
  41. +1
    -1
      tests/st/func/profiler/test_minddata_analyse.py
  42. +3
    -3
      tests/st/func/profiler/test_minddata_pipeline_analyser.py
  43. +4
    -4
      tests/st/func/profiler/test_op_analyser.py
  44. +3
    -3
      tests/ut/profiler/analyser/test_aicpu_analyser.py
  45. +1
    -1
      tests/utils/lineage_writer/_summary_record.py

+ 1
- 1
RELEASE.md View File

@@ -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



+ 1
- 1
mindinsight/backend/run.py View File

@@ -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


+ 1
- 1
mindinsight/datavisual/data_transform/data_loader.py View File

@@ -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()



+ 1
- 1
mindinsight/datavisual/data_transform/data_manager.py View File

@@ -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):


+ 1
- 1
mindinsight/datavisual/data_transform/ms_data_loader.py View File

@@ -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.")



+ 1
- 1
mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto View File

@@ -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;
};



+ 1
- 1
mindinsight/datavisual/utils/crc32/__init__.pyi View File

@@ -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:


+ 4
- 4
mindinsight/datavisual/utils/tools.py View File

@@ -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.


+ 1
- 1
mindinsight/debugger/debugger_grpc_server.py View File

@@ -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


+ 2
- 2
mindinsight/debugger/proto/ms_graph.proto View File

@@ -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;
}
}

+ 2
- 2
mindinsight/debugger/stream_handler/tensor_handler.py View File

@@ -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


+ 1
- 1
mindinsight/mindconverter/graph_based_converter/generator/fragment_utils.py View File

@@ -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.


+ 2
- 2
mindinsight/profiler/analyser/minddata_analyser.py View File

@@ -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()


+ 1
- 1
mindinsight/profiler/analyser/minddata_pipeline_analyser.py View File

@@ -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


+ 3
- 3
mindinsight/profiler/analyser/step_trace_analyser.py View File

@@ -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.


+ 8
- 8
mindinsight/ui/src/components/debugger-grid-table-simple.vue View File

@@ -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) {


+ 8
- 8
mindinsight/ui/src/components/grid-table-simple.vue View File

@@ -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) {


+ 5
- 5
mindinsight/ui/src/components/histogram-unit.vue View File

@@ -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
*/


+ 1
- 1
mindinsight/ui/src/components/radar-chart.vue View File

@@ -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],


+ 2
- 2
mindinsight/ui/src/components/scatter.vue View File

@@ -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() {


+ 1
- 1
mindinsight/ui/src/components/search-select.vue View File

@@ -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() {


+ 1
- 1
mindinsight/ui/src/main.js View File

@@ -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/);


+ 6
- 6
mindinsight/ui/src/mixins/auto-update.vue View File

@@ -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) {


+ 1
- 1
mindinsight/ui/src/mixins/common-graph.vue View File

@@ -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', ''));


+ 4
- 4
mindinsight/ui/src/mixins/debugger-mixin.vue View File

@@ -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) {


+ 3
- 3
mindinsight/ui/src/views/explain/saliency-map.vue View File

@@ -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
*/


+ 1
- 1
mindinsight/ui/src/views/explain/xai-metric.vue View File

@@ -726,7 +726,7 @@ export default {
};
},
/**
* Clear commmon data
* Clear common data
*/
clearCllassifyCommonData() {
this.fullDataDict = {};


+ 1
- 1
mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue View File

@@ -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 = {


+ 1
- 1
mindinsight/ui/src/views/profiling-gpu/profiling.vue View File

@@ -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');


+ 1
- 1
mindinsight/ui/src/views/profiling/profiling-dashboard.vue View File

@@ -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 = {


+ 2
- 2
mindinsight/ui/src/views/train-manage/compare-plate.vue View File

@@ -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,


+ 2
- 2
mindinsight/ui/src/views/train-manage/graph.vue View File

@@ -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) => {


+ 1
- 1
mindinsight/ui/src/views/train-manage/histogram.vue View File

@@ -1187,7 +1187,7 @@ export default {
return data;
},
/**
* Formate time display
* Format time display
* @param {Number} value
* @return {Number} Formatted number
*/


+ 1
- 1
mindinsight/ui/src/views/train-manage/scalar-compare.vue View File

@@ -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) {


+ 1
- 1
mindinsight/ui/src/views/train-manage/scalar.vue View File

@@ -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) {


+ 3
- 3
mindinsight/ui/src/views/train-manage/tensor.vue View File

@@ -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
*/


+ 4
- 4
mindinsight/ui/src/views/train-manage/training-dashboard.vue View File

@@ -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) {


+ 1
- 1
tests/st/func/lineagemgr/collection/model/test_model_lineage.py View File

@@ -14,7 +14,7 @@
# ============================================================================

"""
Fuction:
Function:
Test the lineage information collection module.
Usage:
pytest lineagemgr/collection/model/test_model_lineage.py


+ 3
- 3
tests/st/func/profiler/test_aicpu_analyser.py View File

@@ -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'],


+ 1
- 1
tests/st/func/profiler/test_analyse.py View File

@@ -14,7 +14,7 @@
# ============================================================================

"""
Fuction:
Function:
Test profiler to watch the performance of training.
Usage:
pytest tests/st/func/profiler


+ 1
- 1
tests/st/func/profiler/test_minddata_analyse.py View File

@@ -13,7 +13,7 @@
# limitations under the License.
# ============================================================================
"""
Fuction:
Function:
Test profiler to watch the performance of training.
Usage:
pytest tests/st/func/profiler


+ 3
- 3
tests/st/func/profiler/test_minddata_pipeline_analyser.py View File

@@ -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,


+ 4
- 4
tests/st/func/profiler/test_op_analyser.py View File

@@ -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': {


+ 3
- 3
tests/ut/profiler/analyser/test_aicpu_analyser.py View File

@@ -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'],


+ 1
- 1
tests/utils/lineage_writer/_summary_record.py View File

@@ -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.


Loading…
Cancel
Save