microsoft / nn-Meter

A DNN inference latency prediction toolkit for accurately modeling and predicting the latency on diverse edge devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formula (1) in nn_meter/builder/backend_meta/fusion_rule_tester/generate_testcase.py

AIxyz opened this issue · comments

commented

Hi, @JiahangXu , in nn_meter/builder/backend_meta/fusion_rule_tester/generate_testcase.py, I guess the 'or' should be 'and', because 'or' means $min(T_{op_1}\ ,\ T_{op_2}\ ,\ T_{op_1}+T_{op_2}\ ,\ T_{op_1op_2})$, 'and' means $min(T_{op_1}\ ,\ T_{op_2})$.

secondary_op_lat = min(lat for op, lat in self.latency.items() if op != 'block' or op != self.false_case)

Thanks & Regards,
X. Zhang

Hi, thanks for raising this issue! Yes, this is a typo and you are right! Thanks for your kind reminder!