Skip to content

[Frontend] Make Placeholder roles explicit in GraphImporter#676

Open
R-Tars wants to merge 1 commit intobuddy-compiler:mainfrom
R-Tars:20260126-2
Open

[Frontend] Make Placeholder roles explicit in GraphImporter#676
R-Tars wants to merge 1 commit intobuddy-compiler:mainfrom
R-Tars:20260126-2

Conversation

@R-Tars
Copy link
Collaborator

@R-Tars R-Tars commented Jan 26, 2026

Summary

This PR removes the implicit ordering dependency when importing PlaceholderOp nodes.
GraphImporter now classifies each placeholder as either a model parameter or a runtime input explicitly, matching by TensorMeta instead of relying on traversal order.
This guarantees stable behaviour even after graph optimisations that reorder nodes.

Checklist

  • The code builds successfully
  • Existing tests pass
  • New tests are added where appropriate
  • Code follows the project coding style
  • Documentation is updated if needed

@R-Tars R-Tars requested a review from zhanghb97 as a code owner January 26, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant