Skip to content

Conversation

tonypottera24
Copy link
Contributor

Description

Optimize the dfs function by merging two for loop into one.

Motivation and Context

There's no meaning to keep stack += nodes[node_index].input in an independent for loop.

Signed-off-by: Po-Chu Hsu <tonypottera@gmail.com>
@tonypottera24 tonypottera24 requested a review from a team as a code owner October 9, 2024 08:49
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.25%. Comparing base (d7fbf2b) to head (2df83ba).
Report is 315 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6440      +/-   ##
==========================================
- Coverage   57.25%   57.25%   -0.01%     
==========================================
  Files         507      507              
  Lines       31433    31432       -1     
  Branches     4690     4689       -1     
==========================================
- Hits        17997    17996       -1     
+ Misses      12581    12580       -1     
- Partials      855      856       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinchuby justinchuby added this pull request to the merge queue Oct 9, 2024
Merged via the queue into onnx:main with commit 3f2ca5f Oct 9, 2024
32 checks passed
@tonypottera24 tonypottera24 deleted the dfs-patch branch October 9, 2024 22:05
@ramkrishna2910 ramkrishna2910 added the module: utility Helper modules label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: utility Helper modules
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants