mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Fixes https://github.com/pytorch/pytorch/issues/138062 Pull Request resolved: https://github.com/pytorch/pytorch/pull/138137 Approved by: https://github.com/mlazos
This commit is contained in:
parent
f3c3f3a3c3
commit
5b7f4767ff
|
|
@ -106,7 +106,7 @@ def allow_in_graph(fn):
|
|||
torch.compiler.allow_in_graph(my_custom_function)
|
||||
|
||||
@torch.compile(...)
|
||||
def fn(a):
|
||||
def fn(x):
|
||||
x = torch.add(x, 1)
|
||||
x = my_custom_function(x)
|
||||
x = torch.add(x, 1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user