Skip to content

Commit

Permalink
spell error (#229)
Browse files Browse the repository at this point in the history
* add yolov5 examples

* spell error

---------

Co-authored-by: 王盟 <[email protected]>
  • Loading branch information
wm901115nwpu and 王盟 authored Feb 14, 2023
1 parent 48e0634 commit a57f16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mqbench/custom_quantizer/model_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def _on_merge_chain(self, modules, pattern, pair, p_pos=0, v_pos=0):
if (node.op == "call_module" and type(modules[node.target]) == cur_pattern) or \
((node.op == 'call_function' or node.op == 'call_method') and
node.target == cur_pattern):
# Means compairing pair.
# Means comparing pair.
if len(pattern) > p_pos and len(pair) > v_pos:
return self._on_merge_chain(modules, pattern, pair, p_pos + 1, v_pos + 1)
# Means compairing extra node.
# Means comparing extra node.
matched = False
flatten_args = self._flatten_args(node.args)
for _arg in flatten_args:
Expand Down

0 comments on commit a57f16a

Please sign in to comment.