Skip to content

Commit

Permalink
disable some check
Browse files Browse the repository at this point in the history
Signed-off-by: yiliu30 <[email protected]>
  • Loading branch information
yiliu30 committed Jun 20, 2024
1 parent 256fc0a commit 4b303f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def is_target_node_in_candidate_list(match, original_graph, pattern_graph):
if node.target == target_op:
target_node = node
break
if target_node is None:
if target_node is None: # pragma: no cover
return False
matched_node = match.nodes_map[target_node]
return matched_node in node_list
Expand Down Expand Up @@ -138,7 +138,7 @@ def get_unquantized_node_set(gm: torch.fx.GraphModule):
if meta := getattr(node, "meta"):
if quantization_annotation := meta.get(xiq.QUANT_ANNOTATION_KEY):
none_annotation = xiq._X86InductorQuantizationAnnotation(_annotated=True)
if quantization_annotation != none_annotation:
if quantization_annotation != none_annotation: # pragma: no cover
continue
unquantized_node_set.add(node)
return unquantized_node_set
Expand Down

0 comments on commit 4b303f5

Please sign in to comment.