Skip to content

Commit

Permalink
TODO to use find_nodes instead of get_graph_node_by_name
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Jul 26, 2024
1 parent 3b4a992 commit 12eb153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nncf/experimental/torch/fx/node_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import torch


# TODO(dlyakhov): Use torch.fx.graph.find_nodes method instead after
# torch version update (>= 2.4)
def get_graph_node_by_name(graph: torch.fx.Graph, name: str) -> torch.fx.Node:
"""
Retrieves a node with the specified name from the grpah.
Expand Down

0 comments on commit 12eb153

Please sign in to comment.