Skip to content

Enable Dynamic Shapes For MD Ops#4402

Merged
narendasan merged 2 commits into
pytorch:mainfrom
jloftin-nv:dev-jloftin-dynamic-shape-nccl
Jul 24, 2026
Merged

Enable Dynamic Shapes For MD Ops#4402
narendasan merged 2 commits into
pytorch:mainfrom
jloftin-nv:dev-jloftin-dynamic-shape-nccl

Conversation

@jloftin-nv

Copy link
Copy Markdown
Contributor

Description

Enable supports_dynamic_shapes=True for the TRT 11 MD ops, which significantly improves graph segmentation

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 14, 2026
@github-actions github-actions Bot added component: conversion Issues re: Conversion stage 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

@narendasan narendasan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@narendasan

Copy link
Copy Markdown
Collaborator

@jloftin-nv would a dynamic shape md op test make sense?

@jloftin-nv
jloftin-nv force-pushed the dev-jloftin-dynamic-shape-nccl branch from 25fc510 to 683077e Compare July 23, 2026 22:27
@jloftin-nv

Copy link
Copy Markdown
Contributor Author

@narendasan Added a test + fixed A2A issue

@github-actions github-actions Bot added component: tests Issues re: Tests component: lowering Issues re: The lowering / preprocessing passes labels Jul 23, 2026
@narendasan
narendasan merged commit cf96951 into pytorch:main Jul 24, 2026
132 of 144 checks passed
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: conversion Issues re: Conversion stage 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.

2 participants