William Wen 2024-10-17 07:12:15 +00:00 committed by PyTorch MergeBot
parent f3c3f3a3c3
commit 5b7f4767ff

View File

@ -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)