Skip to content

[precompile] Type Capture over fn's signature - #198529

Closed
bobrenjc93 wants to merge 5 commits into
gh/bobrenjc93/1486/basefrom
gh/bobrenjc93/1486/head
Closed

bobrenjc93 wants to merge 5 commits into
gh/bobrenjc93/1486/basefrom
gh/bobrenjc93/1486/head

Conversation

@bobrenjc93

@bobrenjc93 bobrenjc93 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary. capture() took fn: Callable[..., object] and Capture.__call__ returned object, so calling a capture threw away fn's types. The documented y = cap(model, x); y.sum() therefore failed type-checking, and every typed caller had to cast. Capture is now Generic[_P, _R] over fn's signature, the same way torch.compile types its result with _InputT/_RetT, and capture(fn: Callable[_P, _R], ...) returns Capture[_P, _R]. Returning a Callable[_P, _R] would not work, because that type has no __enter__ or save(). Nothing changes at runtime, and load() stays untyped, since it rebuilds the callable from disk.

Review cleanup on capture() from #198135, stacked at the top like the lifecycle change below it.

def step(model: torch.nn.Module, x: torch.Tensor) -> torch.Tensor:
    return model(x)

with capture(step, artifact_path="m.py", cache_path="m.cache") as cap:
    y = cap(model, x)  # parent: y: object; now: y: Tensor
    y.sum()

Test Plan:

No runtime behaviour changes. To check the typing, I ran pyrefly on a scratch caller: y = cap(torch.nn.Linear(2, 2), torch.randn(2)) infers y: Tensor, and cap("not a module", 3) is reported as two bad-argument-type errors. No CI check pins this inference.

python test/test_precompile.py
lintrunner -a torch/_precompile.py

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 [email protected]

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198529

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 2 Unrelated Failures

As of commit d37b949 with merge base 12a7c44 (image):

🟡 GREEN LIGHT - PR requires human review:

  • Triviality
    • Not in Type annotations: __call__ and _run replace existing object annotations with _P.args/_R, an edit to a non-Any annotation
    • The diff adds cast(_R, result) in _MakeFxCapture._run, which silences the checker rather than informing it
  • Public API
    • Capture is exported from torch/compiler/precompile.py and now subclasses Generic[_P, _R], so its runtime bases and subscriptability change
    • How the public capture() signature should be typed is a design question for a human, not an LGTM
  • Tests
    • No test pins the new inference; the PR body says the pyrefly check was run only on a scratch caller

reason: not_trivial
Reviewed commit: d37b949

Inference job

🐛 Report a wrong verdict

NEW FAILURES - The following jobs have failed:

  • trunk / macos-py3-arm64 / test (default, 2, 3, macos-m1-stable) (gh)
    test/test_ops.py::TestCommonMPS::test_noncontiguous_samples_scatter_reduce_amin_mps_int64

    AI verdict: AI verdict: probably not related

    The suspect only adds type annotations in torch/_dynamo/precompile_package.py and a dynamo test. The failure is a Metal pipeline-state compile error ("Unsupported float atomic operation for given target") in an MPS scatter_reduce amin int64 kernel on an M1 runner. That comes from MPS kernels or the runner's GPU/driver, not from dynamo precompile code.

    Full reasoning on HUD →

  • trunk / macos-py3-arm64 / test (default, 3, 3, macos-m1-stable) (gh)
    test/test_ops.py::TestCommonMPS::test_noncontiguous_samples_scatter_reduce_amax_mps_int64

    AI verdict: AI verdict: probably not related

    The failure is a Metal shader pipeline compile error in the native MPS scatter_reduce kernel ("Unsupported float atomic operation for given target", AGXMetal13_3). The suspect only changes the typing of torch/_precompile.py and the precompile-related Python/tests, and nothing between the merge base and the suspect touches MPS kernels.

    Full reasoning on HUD →

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review this PR. Earlier bot reviews and my replies are in this thread; please verify the fixes and dispositions.

@claude

claude Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 1m 10s —— View job


I found no issues in this PR: making Capture Generic[_P, _R] over fn's signature is correct and changes nothing at runtime.

PR Review: #198529

Summary

The PR makes Capture generic over fn's signature, so cap(model, x) now has fn's return type instead of object. I found no issues.

About the earlier reviews you mentioned: the thread I was given only has the two pytorch-bot comments (Dr. CI and the release-notes label notice). It has no earlier Claude reviews and none of your replies, so I had nothing to check fixes or dispositions against. If they're on another PR in the stack (for example #198135), link it and I'll check them there.

What I checked:

  • _MakeFxCapture: fn: Callable[_P, _R] binds the type variables. cast(_R, result) is the only cast, which fits a result that comes back from a re-rendered runnable.
  • _DynamoCapture: it's built from session, not fn, so nothing binds _P/_R when it's constructed. _run returns self._map(...) as Any. Callers still get the right types because capture() declares -> Capture[_P, _R], which matches the pyrefly result in the test plan. The body of that path just isn't statically checked against _R. That's acceptable here, and passing fn in only to satisfy the type checker would be extra noise.
  • __enter__ -> Self: keeps the type parameters, so with capture(...) as cap: also gets a typed cap.
  • Kwargs on the make_fx path: _MakeFxCapture._run still rejects kwargs at runtime while _P.kwargs accepts them. The old **kwargs: object accepted them too, so this is not a regression.
  • Public-API tests (test/test_precompile.py:2871): get_type_hints on capture / Capture resolves to non-string hints, so those tests don't change. The docs use autoclass without :show-inheritance:, so no Generic[~_P, ~_R] base shows up in the rendered docs.
  • BC: code that uses bare Capture still type-checks, with the parameters treated as implicit Any. ParamSpec from typing is fine because the minimum Python is 3.10.

Recommendation

Approve. It changes typing only, and the pyrefly scratch check in the test plan is appropriate. The PR still needs a topic: not user facing label, as the bot noted. CI still had 22 checks pending when I reviewed.

[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review this PR. Earlier bot reviews and my replies are in this thread; please verify the fixes and dispositions.

@claude

claude Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 33s —— View job


I found no issues: the diff is the same one the earlier review saw, and making Capture Generic[_P, _R] is still correct and changes typing only.

PR Review: #198529

Summary

The PR makes Capture generic over fn's ParamSpec and return type, so cap(model, x) now has fn's return type instead of object. I found no issues.

Checking the earlier review and your replies: this thread has one earlier Claude review (19:26). It reported no findings, so there were no fixes to check. The thread has no replies from you and no inline review comments, so there were no dispositions to check either. If your replies are on another PR in the stack (for example #198135), link it and I'll check them there.

I re-checked the current diff in torch/_precompile.py:

  • capture() at L3216 builds _MakeFxCapture(fn, ...), and fn binds _P/_R.
  • _DynamoCapture(session, ...) at L3247 relies on the declared -> Capture[_P, _R] return type. Its _run body at L762 returns the Any from self._map unchecked, which is fine.
  • cast(_R, result) is the only cast.
  • __enter__ -> Self at L484 keeps the type parameters, so with capture(...) as cap: gets a typed cap.
  • Nothing changes at runtime.

Recommendation

Approve. It still needs a topic: not user facing label. The CI failures are all the ghstack-depth guard ("sits on top of >=10 ghstack entries; refusing to run CI"), not failures caused by this change.

@bobrenjc93 bobrenjc93 changed the title [precompile] Type Capture over fn's signature [no-ci] [precompile] Type Capture over fn's signature Sep 24, 2026
[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review this PR. Earlier bot reviews and my replies are in this thread; please verify the fixes and dispositions.

@claude

claude Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 22s —— View job


I found no issues: the diff hasn't changed since the two earlier reviews, and making Capture Generic[_P, _R] still only changes types.

PR Review: #198529

Summary

The PR makes Capture generic over fn's ParamSpec and return type, so cap(model, x) now has fn's return type instead of object. I found no issues.

Checking the earlier reviews and your replies: this thread has two earlier Claude reviews (19:26 and 20:30). Neither reported any findings, so there are no fixes to check. The thread has no replies from you and no inline review comments, so there are no dispositions to check either. The diff in torch/_precompile.py is the same one both reviews saw (+25/-12, one file). If your replies are on another PR in the stack, link it and I'll check them there.

Recommendation

Approve. It changes typing only. The PR still needs the topic: not user facing label.

@bobrenjc93
bobrenjc93 marked this pull request as ready for review September 24, 2026 21:00
@bobrenjc93
bobrenjc93 requested a review from aorenste September 24, 2026 21:00
@bobrenjc93 bobrenjc93 changed the title [no-ci] [precompile] Type Capture over fn's signature [precompile] Type Capture over fn's signature Sep 24, 2026
@bobrenjc93 bobrenjc93 added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Sep 24, 2026
[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review this PR. Earlier bot reviews and my replies are in this thread; please verify the fixes and dispositions.

@claude

claude Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 19s —— View job


I found no issues. The diff is the same one the three earlier reviews saw, and the one open item from those reviews (the missing topic: not user facing label) has been fixed.

PR Review: #198529

Summary

The PR makes Capture Generic[_P, _R] over fn's signature, so cap(model, x) now has fn's return type instead of object. It changes typing only, and I found no issues.

Checking the earlier reviews and your replies:

  • There are three earlier Claude reviews in this thread (19:26, 20:30, 20:54). None of them reported a code finding, so there are no code fixes to check.
  • The only open item they raised was the missing topic: not user facing label. The PR now has that label, so that item is resolved.
  • This thread has no replies from you and no inline review comments, so there are no dispositions to check. If your replies are on another PR in the stack, link it and I'll check them there.
  • The diff (torch/_precompile.py, +25/-12, HEAD 211ed97) matches what the earlier reviews saw.

Recommendation

Approve. CI still has checks pending.

[ghstack-poisoned]
@bobrenjc93

Copy link
Copy Markdown
Contributor Author

@claude review

@claude

claude Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Claude finished @bobrenjc93's task in 37s —— View job


I found no issues. The PR's own changes are the same as in the four earlier reviews; the new HEAD d37b949 only rebases onto an updated base.

PR Review: #198529

Summary

The PR makes Capture Generic[_P, _R] over fn's signature, so cap(model, x) returns fn's return type instead of object. It changes types only, nothing at runtime, and I found no issues.

The four earlier Claude reviews (19:26, 20:30, 20:54, 22:23) reported no code findings, so there were no fixes to check. The one open item they raised, the missing topic: not user facing label, is fixed. This thread has no replies from you and no inline review comments, so there were no dispositions to check either.

The current diff in torch/_precompile.py (+25/-12) has the same changed lines as before. Only line numbers moved: Capture is now at L461, _MakeFxCapture at L553, _DynamoCapture at L688 and capture() at L3123.

Recommendation

Approve.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Starting merge as part of PR stack under #198530

pytorchmergebot pushed a commit that referenced this pull request Oct 10, 2026
**Problem.** Each tracer's capture ran its own `with`-block lifecycle from its own flags, so a Dynamo capture misused after its block gave different errors than a make_fx one, and a spent make_fx capture kept the pair its docstring says it drops.

**Fix.** `Capture` owns the lifecycle as one state field under one lock, and the tracers implement only the hooks it calls.

**Summary.** `_MakeFxCapture` tracked its block with two booleans, `_entered` and `_exited`, which are really three states, and `_DynamoCapture` kept its own `_exited` flag and its own copies of `__enter__`, `__exit__`, `__call__` and `save()`. The two front-ends therefore drifted: a Dynamo capture called after its block said "not active" where make_fx says "already exited", and make_fx's `__exit__` never cleared the pair that `Capture`'s docstring says a spent capture does not keep. `Capture` now holds the lifecycle as one field, `new`/`active`/`spent`, owns the four methods and their not-active, already-entered and spent messages, and a tracer implements only `_start`, `_run`, `_save` and `_finish`, where `_finish` drops the pair on every exit. The Dynamo capture's `RLock`, which serializes the block's calls, saves, exit and `summary()` because every call feeds one `PrecompileSession`, moves into `Capture` with the lifecycle. The messages a make_fx capture gives do not change, and a Dynamo capture now gives the same ones.

These are review cleanups on `capture()` from #198135; that PR and #198243 are approved, so both are left as they are. The `Generic` typing of `Capture` and the tensor-only leaves snapshot that earlier revisions of this PR carried now live in #198529 and #198530.

## What a Dynamo capture says now

```python
cap = capture(fn, ...)          # a DynamoTracer capture
cap(x)                          # "before calling it" (unchanged)
with cap:
    with cap: ...               # "already been entered" (unchanged)
cap(x)                          # after the block: a call, save() or `with cap:`
# parent: "not active" / "already been entered"
# now:    "already exited", the same as make_fx
```

The `save()` checkpoint contract moves from `_DynamoCapture`'s override onto the public `Capture.save` docstring, since it holds for both tracers and `help(cap.save)` shows only the base docstring: each call rewrites both files, a refusal or failed write raises but writes nothing partial and the capture stays open, and it raises `PrecompileError` outside the `with` block. `test_calls_from_several_threads_are_serialized` pins the lock.

Test Plan:

`test_misuse_is_refused` in `TestPrecompileDynamoCapture` moves to the shared messages, and `test_save_checkpoints_mid_block` now expects "already exited" for a save after exit. The make_fx lifecycle tests pass without changes (`test_a_capture_must_be_entered_before_it_is_called`, `test_a_capture_is_over_once_its_block_exits`, `test_save_after_a_raising_block_is_refused`, `test_a_capture_is_single_use`), which pins that its messages did not move.

```
python test/test_precompile.py
python test/dynamo/test_precompile_package.py
lintrunner -a torch/_precompile.py test/test_precompile.py
```

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: #198423
Approved by: https://github.com/MengjiaoZhou
ghstack dependencies: #198211, #198223, #198283, #198284, #197993, #198213, #198135, #198243, #198214, #198136, #198215, #198137, #198216, #198528, #199883, #198138, #198227, #198217
pytorchmergebot pushed a commit that referenced this pull request Oct 10, 2026
…ts (#198530)

**Summary.** `_trace_without_side_effects` snapshots the buffers and tensor inputs a static trace could mutate, so the serve that follows is the only execution the caller sees. It built `tensors` from the module buffers plus every pytree leaf of `args`, the modules themselves and any non-tensor leaves included, and applied `isinstance(t, torch.Tensor)` only inside the snapshot comprehension. The leaves are now filtered to tensors up front, so `tensors` holds only tensors and the snapshot needs no type check. The parameter-exclusion set loses the non-tensor ids too, which never matched anything because a live non-tensor object cannot share an id with a live parameter. What gets snapshotted is unchanged; this is review cleanup from #198243, which is approved, so it lands here at the top of the stack instead of in that commit.

```python
# parent
leaves = pytree.tree_leaves(args)
saved = {id(t): (t, t.detach().clone()) for t in tensors if isinstance(t, torch.Tensor) and id(t) not in params}
# now
leaves = [t for t in pytree.tree_leaves(args) if isinstance(t, torch.Tensor)]
saved = {id(t): (t, t.detach().clone()) for t in tensors if id(t) not in params}
```

Test Plan:

`test_a_capture_applies_in_place_updates_once`, `test_a_capture_refuses_an_in_place_parameter_update` and `test_a_trace_that_raises_leaves_buffers_and_inputs_as_they_were` in test/test_precompile.py cover this path and pass unchanged.

```
python test/test_precompile.py
lintrunner -a torch/_precompile.py
```

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: #198530
Approved by: https://github.com/pytorchgreenlight
ghstack dependencies: #198211, #198223, #198283, #198284, #197993, #198213, #198135, #198243, #198214, #198136, #198215, #198137, #198216, #198528, #199883, #198138, #198227, #198217, #198423, #198529
cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
**Problem.** Each tracer's capture ran its own `with`-block lifecycle from its own flags, so a Dynamo capture misused after its block gave different errors than a make_fx one, and a spent make_fx capture kept the pair its docstring says it drops.

**Fix.** `Capture` owns the lifecycle as one state field under one lock, and the tracers implement only the hooks it calls.

**Summary.** `_MakeFxCapture` tracked its block with two booleans, `_entered` and `_exited`, which are really three states, and `_DynamoCapture` kept its own `_exited` flag and its own copies of `__enter__`, `__exit__`, `__call__` and `save()`. The two front-ends therefore drifted: a Dynamo capture called after its block said "not active" where make_fx says "already exited", and make_fx's `__exit__` never cleared the pair that `Capture`'s docstring says a spent capture does not keep. `Capture` now holds the lifecycle as one field, `new`/`active`/`spent`, owns the four methods and their not-active, already-entered and spent messages, and a tracer implements only `_start`, `_run`, `_save` and `_finish`, where `_finish` drops the pair on every exit. The Dynamo capture's `RLock`, which serializes the block's calls, saves, exit and `summary()` because every call feeds one `PrecompileSession`, moves into `Capture` with the lifecycle. The messages a make_fx capture gives do not change, and a Dynamo capture now gives the same ones.

These are review cleanups on `capture()` from pytorch#198135; that PR and pytorch#198243 are approved, so both are left as they are. The `Generic` typing of `Capture` and the tensor-only leaves snapshot that earlier revisions of this PR carried now live in pytorch#198529 and pytorch#198530.

## What a Dynamo capture says now

```python
cap = capture(fn, ...)          # a DynamoTracer capture
cap(x)                          # "before calling it" (unchanged)
with cap:
    with cap: ...               # "already been entered" (unchanged)
cap(x)                          # after the block: a call, save() or `with cap:`
# parent: "not active" / "already been entered"
# now:    "already exited", the same as make_fx
```

The `save()` checkpoint contract moves from `_DynamoCapture`'s override onto the public `Capture.save` docstring, since it holds for both tracers and `help(cap.save)` shows only the base docstring: each call rewrites both files, a refusal or failed write raises but writes nothing partial and the capture stays open, and it raises `PrecompileError` outside the `with` block. `test_calls_from_several_threads_are_serialized` pins the lock.

Test Plan:

`test_misuse_is_refused` in `TestPrecompileDynamoCapture` moves to the shared messages, and `test_save_checkpoints_mid_block` now expects "already exited" for a save after exit. The make_fx lifecycle tests pass without changes (`test_a_capture_must_be_entered_before_it_is_called`, `test_a_capture_is_over_once_its_block_exits`, `test_save_after_a_raising_block_is_refused`, `test_a_capture_is_single_use`), which pins that its messages did not move.

```
python test/test_precompile.py
python test/dynamo/test_precompile_package.py
lintrunner -a torch/_precompile.py test/test_precompile.py
```

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: pytorch#198423
Approved by: https://github.com/MengjiaoZhou
ghstack dependencies: pytorch#198211, pytorch#198223, pytorch#198283, pytorch#198284, pytorch#197993, pytorch#198213, pytorch#198135, pytorch#198243, pytorch#198214, pytorch#198136, pytorch#198215, pytorch#198137, pytorch#198216, pytorch#198528, pytorch#199883, pytorch#198138, pytorch#198227, pytorch#198217
cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
**Summary.** `capture()` took `fn: Callable[..., object]` and `Capture.__call__` returned `object`, so calling a capture threw away `fn`'s types. The documented `y = cap(model, x); y.sum()` therefore failed type-checking, and every typed caller had to cast. `Capture` is now `Generic[_P, _R]` over `fn`'s signature, the same way `torch.compile` types its result with `_InputT`/`_RetT`, and `capture(fn: Callable[_P, _R], ...)` returns `Capture[_P, _R]`. Returning a `Callable[_P, _R]` would not work, because that type has no `__enter__` or `save()`. Nothing changes at runtime, and `load()` stays untyped, since it rebuilds the callable from disk.

Review cleanup on `capture()` from pytorch#198135, stacked at the top like the lifecycle change below it.

```python
def step(model: torch.nn.Module, x: torch.Tensor) -> torch.Tensor:
    return model(x)

with capture(step, artifact_path="m.py", cache_path="m.cache") as cap:
    y = cap(model, x)  # parent: y: object; now: y: Tensor
    y.sum()
```

Test Plan:

No runtime behaviour changes. To check the typing, I ran pyrefly on a scratch caller: `y = cap(torch.nn.Linear(2, 2), torch.randn(2))` infers `y: Tensor`, and `cap("not a module", 3)` is reported as two `bad-argument-type` errors. No CI check pins this inference.

```
python test/test_precompile.py
lintrunner -a torch/_precompile.py
```

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: pytorch#198529
Approved by: https://github.com/MengjiaoZhou
ghstack dependencies: pytorch#198211, pytorch#198223, pytorch#198283, pytorch#198284, pytorch#197993, pytorch#198213, pytorch#198135, pytorch#198243, pytorch#198214, pytorch#198136, pytorch#198215, pytorch#198137, pytorch#198216, pytorch#198528, pytorch#199883, pytorch#198138, pytorch#198227, pytorch#198217, pytorch#198423
cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
…ts (pytorch#198530)

**Summary.** `_trace_without_side_effects` snapshots the buffers and tensor inputs a static trace could mutate, so the serve that follows is the only execution the caller sees. It built `tensors` from the module buffers plus every pytree leaf of `args`, the modules themselves and any non-tensor leaves included, and applied `isinstance(t, torch.Tensor)` only inside the snapshot comprehension. The leaves are now filtered to tensors up front, so `tensors` holds only tensors and the snapshot needs no type check. The parameter-exclusion set loses the non-tensor ids too, which never matched anything because a live non-tensor object cannot share an id with a live parameter. What gets snapshotted is unchanged; this is review cleanup from pytorch#198243, which is approved, so it lands here at the top of the stack instead of in that commit.

```python
# parent
leaves = pytree.tree_leaves(args)
saved = {id(t): (t, t.detach().clone()) for t in tensors if isinstance(t, torch.Tensor) and id(t) not in params}
# now
leaves = [t for t in pytree.tree_leaves(args) if isinstance(t, torch.Tensor)]
saved = {id(t): (t, t.detach().clone()) for t in tensors if id(t) not in params}
```

Test Plan:

`test_a_capture_applies_in_place_updates_once`, `test_a_capture_refuses_an_in_place_parameter_update` and `test_a_trace_that_raises_leaves_buffers_and_inputs_as_they_were` in test/test_precompile.py cover this path and pass unchanged.

```
python test/test_precompile.py
lintrunner -a torch/_precompile.py
```

Authored with an AI assistant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Pull Request resolved: pytorch#198530
Approved by: https://github.com/pytorchgreenlight
ghstack dependencies: pytorch#198211, pytorch#198223, pytorch#198283, pytorch#198284, pytorch#197993, pytorch#198213, pytorch#198135, pytorch#198243, pytorch#198214, pytorch#198136, pytorch#198215, pytorch#198137, pytorch#198216, pytorch#198528, pytorch#199883, pytorch#198138, pytorch#198227, pytorch#198217, pytorch#198423, pytorch#198529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants