Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshzhao committed Nov 13, 2023
1 parent 0ddeed8 commit b5d5cc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superbench/analyzer/file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def read_raw_data(raw_data_path):
raw_data_df = raw_data_df.rename(raw_data_df['node'])
raw_data_df = raw_data_df.drop(columns=['node'])
except Exception as e:
logger.log_and_raise(exception=IOError, msg='Analyzer: invalid raw data fomat - {}'.format(str(e)))
logger.log_and_raise(exception=IOError, msg='Analyzer: invalid raw data format - {}'.format(str(e)))
return raw_data_df


Expand Down
2 changes: 1 addition & 1 deletion superbench/analyzer/generate_statistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def run(self, raw_data_file, output_dir, diagnosis_rule_file=None, summary_rule_
)
for index, out in enumerate(outputs):
if not out:
logger.error('Analyzer: filter healthy nodese failed')
logger.error('Analyzer: filter healthy nodes failed')
return
aggregated_df[metrics[index]] = out[1]
if plot:
Expand Down
6 changes: 6 additions & 0 deletions superbench/analyzer/rules/diagnosis_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ superbench:
categories: INVESTIGATING
metrics:
- kernel-launch:*.*/.*_time
tensorrt_inference:
function: variance
criteria: 'lambda x:x>0.05'
categories: TensorRT
metrics:
- tensorrt-inference/.*_time.*
# Rule 1: If TensorCore test suffers > 5% downgrade, label it as Not acceptable
tensor_core_rule:
function: variance
Expand Down

0 comments on commit b5d5cc7

Please sign in to comment.