Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize NNCFGraph.get_node_by_name() method (#2190)
### Changes Linear search was removed inside the `NNCFGraph.get_node_by_name()` method. ### Reason for changes The implementation of the `NNCFGraph.get_node_by_name()` method is very slow. The total time spent on its execution (several calls during quantization) is 216.887 seconds for the databricks/dolly-v2-3b model. This method currently operates at O(N) time complexity, where N is the number of nodes in the `NNCFGraph`. I expected it to have O(1) complexity. ### Related tickets Ref: 119299 ### Tests pre-commit scope
- Loading branch information