CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 02:47:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/pytorch/pytorch.git
etag: W/"a98515254f8f94789c2a09a517963962"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=hqPIRK11xPt64wZiw%2F0gauH9ZM6%2F1Q6J28VJGhh2B5HkpXNh%2BdJ6VaxhFwXijyT3sGD3B63tuOJVx2ct3Fgs2v6qWluuMpBpkXsneyhICZyimI%2BlVEfCuMwiKYPVXaHM2l42s5OoxMPMJKihfXQXiH6Quyn59Tjj2Di7%2FavxSOvWO9yWF4cDTyzApZZN5aT%2Ba9Mw8TGFv4scn4tyxStOV7MWrBYnu93ayrKaRZagOjp7uIvWDXP0ge4zUp%2B0jxuoB1Kb5CI6J6ZpTdA%2Fnpkn%2Fg%3D%3D--6EZpIZoWSZmDM93J--TxFCyFzBqGws2mu21tO8uw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1076413964.1753238842; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 02:47:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 02:47:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CE1C:2DEF93:292F8C:3A08D9:68804D3A
[aoti] Print output name for sympy.Expr as well (#138524) · pytorch/pytorch@3f9f604 · GitHub
Copy file name to clipboardExpand all lines: test/inductor/test_aot_inductor.py
Copy file name to clipboardExpand all lines: torch/_inductor/codegen/cpp_wrapper_cpu.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Commit 3f9f604
[aoti] Print output name for sympy.Expr as well (#138524)
To avoid
```
NotImplementedError: unsupported type of output=s0*s1
```
It seems like this was caused by the use of `_scaled_dot_product_flash_attention`.
Fallback kernek:
```
FallbackKernel(
python_kernel_name='torch.ops.aten._scaled_dot_product_flash_attention.default',
name=buf55,
layout=MultiOutputLayout(device=device(type='cuda', index=0)),
inputs=[ComputedBuffer(name='buf52', layout=FixedLayout('cuda', torch.bfloat16, size=[1, 6, s0*s1, 64], stride=[384*s0*s1, 64*s0*s1, 64, 1]), data=Pointwise(device=device(type='cuda', index=0), dtype=torch.bfloat16, inner_fn=<function BaseView.make_loader.<locals>.loader at 0x7fcd7f99da20>, ranges=[1, 6, s0*s1, 64])), ComputedBuffer(name='buf53', layout=FixedLayout('cuda', torch.bfloat16, size=[1, 6, s0*s1, 64], stride=[384*s0*s1, 64*s0*s1, 64, 1]), data=Pointwise(device=device(type='cuda', index=0), dtype=torch.bfloat16, inner_fn=<function BaseView.make_loader.<locals>.loader at 0x7fcd7f99d480>, ranges=[1, 6, s0*s1, 64])), ComputedBuffer(name='buf54', layout=FixedLayout('cuda', torch.bfloat16, size=[1, 6, s0*s1, 64], stride=[384*s0*s1, 64*s0*s1, 64, 1]), data=Pointwise(device=device(type='cuda', index=0), dtype=torch.bfloat16, inner_fn=<function BaseView.make_loader.<locals>.loader at 0x7fcd7f99c430>, ranges=[1, 6, s0*s1, 64]))],
constant_args=(0.125,),
kwargs={'scale': 0.125},
output_view=None,
python_kernel_name=torch.ops.aten._scaled_dot_product_flash_attention.default,
cpp_kernel_name=at::_ops::_scaled_dot_product_flash_attention::call,
ordered_kwargs_for_cpp_kernel=['scale'],
op_overload=aten._scaled_dot_product_flash_attention.default,
arg_properties=[{'name': 'query', 'type': Tensor, 'default_value': None}, {'name': 'key', 'type': Tensor, 'default_value': None}, {'name': 'value', 'type': Tensor, 'default_value': None}, {'name': 'dropout_p', 'type': float, 'default_value': 0.0}, {'name': 'is_causal', 'type': bool, 'default_value': False}, {'name': 'return_debug_mask', 'type': bool, 'default_value': False}],
kwarg_properties=None,
unbacked_bindings=None,
mutation_outputs=[],
origin_node=None,
origins=OrderedSet([_scaled_dot_product_flash_attention])
)
```
codegen with this pr
```
// Topologically Sorted Source Nodes: [scaled_dot_product_attention], Original ATen: [aten._scaled_dot_product_flash_attention]
double var_147 = 0.125;
AtenTensorHandle buf56_handle;
AtenTensorHandle buf57_handle;
auto buf55_4 = s0*s1;
auto buf55_5 = s0*s1;
AtenTensorHandle buf58_handle;
AtenTensorHandle buf59_handle;
AtenTensorHandle buf60_handle;
AOTI_TORCH_ERROR_CODE_CHECK(aoti_torch_cuda__scaled_dot_product_flash_attention(convert_arrayref_tensor_to_tensor(buf52), convert_arrayref_tensor_to_tensor(buf53), convert_arrayref_tensor_to_tensor(buf54), 0.0, 0, 0, &var_147, &buf56_handle, &buf57_handle, nullptr, nullptr, &buf55_4, &buf55_5, &buf58_handle, &buf59_handle, &buf60_handle));
RAIIAtenTensorHandle buf56(buf56_handle);
RAIIAtenTensorHandle buf57(buf57_handle);
RAIIAtenTensorHandle buf58(buf58_handle);
RAIIAtenTensorHandle buf59(buf59_handle);
RAIIAtenTensorHandle buf60(buf60_handle);
```
Differential Revision: D64724460
Pull Request resolved: #138524
Approved by: https://github.com/chenyang781 parent a762dc0 commit 3f9f604Copy full SHA for 3f9f604
File tree
Expand file treeCollapse file tree
2 files changed
+52
-2
lines changedFilter options
- test/inductor
- torch/_inductor/codegen
Expand file treeCollapse file tree
2 files changed
+52
-2
lines changedtest/inductor/test_aot_inductor.py
Copy file name to clipboardExpand all lines: test/inductor/test_aot_inductor.py+50Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1104 | 1104 |
| |
1105 | 1105 |
| |
1106 | 1106 |
| |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1107 | 1157 |
| |
1108 | 1158 |
| |
1109 | 1159 |
| |
|
torch/_inductor/codegen/cpp_wrapper_cpu.py
Copy file name to clipboardExpand all lines: torch/_inductor/codegen/cpp_wrapper_cpu.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
1058 |
| - | |
| 1058 | + | |
1059 | 1059 |
| |
1060 |
| - | |
| 1060 | + | |
1061 | 1061 |
| |
1062 | 1062 |
| |
1063 | 1063 |
| |
|
You can’t perform that action at this time.
0 commit comments