Skip to content

Commit 39971e0

Browse files
c
1 parent 9a24642 commit 39971e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: nncf/torch/model_graph_manager.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def find_const_node_in_constant_subgraph(node: NNCFNode, graph: NNCFGraph) -> Op
5353
"""
5454
if node.metatype == om.PTNoopMetatype or node.node_type in om.QUANTIZE_NODE_TYPES:
5555
prev_nodes = [e.from_node for e in graph.get_input_edges(node)]
56+
if not prev_nodes:
57+
return None
5658
return find_const_node_in_constant_subgraph(prev_nodes[0], graph)
5759
if node.metatype in CONST_NOOP_METATYPES:
5860
return node

0 commit comments

Comments
 (0)