Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix](mlu-ops): Fix an error of perf analyser #993

Merged
merged 2 commits into from
May 23, 2024

Conversation

ZhouxiangZhouxiang
Copy link
Collaborator

@ZhouxiangZhouxiang ZhouxiangZhouxiang commented Apr 7, 2024

Fix the name of prototype so that there is no duplicated names.

Thanks for your contribution and we appreciate it a lot. 🚀🚀

1. Motivation

When we run the perf tool to compare multiple operators, the comparison can fail. The reason is that 2 dataframes need to be merged according to their common keys called "protoName". ProtoNames are the names of calculators' testcases, which means there are a lot of repetitive ones like case0 or case_0. But as a key, protoName should be unique in each dataframe. Repetitive names means that merging 2 dataframes can result in incorrect results.

2. Modification

I have changed the name of the protoname in function preprocess in file parser.py to the full path of the test case of each calculator so that there are no repeated protoNames.

3. Test Report

This is the png generated by the python file for all the calculators, which means the now the bug is solved.
next

@PetrelYy PetrelYy added the Bug Fix Something isn't working label Apr 8, 2024
@PetrelYy PetrelYy added this to the v1.1.0 milestone Apr 8, 2024
@chqy99
Copy link
Collaborator

chqy99 commented Apr 8, 2024

Motivation 需要详细介绍为什么这样改的原因,而不是错误现象:多个算子有可能有同名的测例文件,使用测例的文件名当做键值不合理,应该使用测例的绝对路径当做键值

Fix the name of prototype so that there is no duplicated names.
@PetrelYy PetrelYy removed this from the v1.1.0 milestone Apr 12, 2024
@duzekunKTH duzekunKTH merged commit 996b0c3 into Cambricon:master May 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants