Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
disable some check
Signed-off-by: yiliu30 <[email protected]>
  • Loading branch information
yiliu30 committed Jun 20, 2024
commit 4b303f54d85d4275a546753f627c710b09f7c1a6
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