Skip to content

Fix complex_graph_rewrite crashing on a None-valued placeholder#4401

Open
jloftin-nv wants to merge 2 commits into
pytorch:mainfrom
jloftin-nv:dev-jloftin-complex-none
Open

Fix complex_graph_rewrite crashing on a None-valued placeholder#4401
jloftin-nv wants to merge 2 commits into
pytorch:mainfrom
jloftin-nv:dev-jloftin-complex-none

Conversation

@jloftin-nv

Copy link
Copy Markdown
Contributor

Description

Some models obtained from HF (i.e. Qwen-Image) have None placeholders, this fixes a crash for that

Fixes # (issue)

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • [ X] My code follows the style guidelines of this project (You can use the linters)
  • [ X] I have performed a self-review of my own code
  • [X ] I have commented my code, particularly in hard-to-understand areas and hacks
  • [X ] I have made corresponding changes to the documentation
  • [X ] I have added tests to verify my fix or my feature
  • [ X] New and existing unit tests pass locally with my changes
  • [ X] I have added the relevant labels to my PR in so that relevant reviewers are notified

@meta-cla meta-cla Bot added the cla signed label Jul 13, 2026
@jloftin-nv jloftin-nv changed the title Dev jloftin complex none Fix complex_graph_rewrite crashing on a None-valued placeholder Jul 14, 2026
@github-actions github-actions Bot added component: tests Issues re: Tests component: lowering Issues re: The lowering / preprocessing passes component: core Issues re: The core compiler component: api [Python] Issues re: Python API component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths labels Jul 14, 2026
@github-actions github-actions Bot requested a review from narendasan July 14, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed component: api [Python] Issues re: Python API component: core Issues re: The core compiler component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths component: lowering Issues re: The lowering / preprocessing passes component: tests Issues re: Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant