Dayuxiaoshui opened a new pull request, #18645:
URL: https://github.com/apache/tvm/pull/18645

   This commit implements the ResolveDependency() method for SequentialNode to 
handle pass dependency resolution. The implementation:
   
   1. Collects all enabled passes from the current list
   2. Recursively collects required passes from the global registry
   3. Builds a dependency graph using adjacency lists
   4. Performs topological sort using Kahn's algorithm
   5. Detects and handles circular dependencies with warnings
   6. Updates the passes list with the sorted order
   
   Key features:
   - Handles transitive dependencies correctly
   - Respects PassContext to filter passes by opt_level
   - Gracefully handles unresolvable dependencies
   - Warns about circular dependencies
   
   Also includes fixes for Relax/Torch from_exported_program crash with 
FakeTensor and lifted tensors.
   
   Tested:
   - All 3 tests pass
   - Code compiles successfully
   - Lint checks pass


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to