Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 235d19a

Browse filesBrowse files
committed
[invoke_subgraph] Save eager strides during proxy tensor dispatch
ghstack-source-id: f389728 Pull Request resolved: #155291
1 parent 8de9325 commit 235d19a
Copy full SHA for 235d19a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎torch/fx/experimental/proxy_tensor.py

Copy file name to clipboardExpand all lines: torch/fx/experimental/proxy_tensor.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,13 +1136,16 @@ def _should_save_eager_input_vals(
11361136
target: Any,
11371137
args_kwargs: Optional[tuple[tuple[Argument, ...], dict[str, Argument]]] = None,
11381138
) -> bool:
1139+
from torch._higher_order_ops.invoke_subgraph import InvokeSubgraphHOP
1140+
11391141
if not callable(target):
11401142
return False
11411143
if isinstance(
11421144
target,
11431145
(
11441146
torch._higher_order_ops.triton_kernel_wrap.TritonKernelWrapperFunctional,
11451147
torch._higher_order_ops.triton_kernel_wrap.TritonKernelWrapperMutation,
1148+
InvokeSubgraphHOP,
11461149
),
11471150
):
11481151
return True

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.