GB0223

Graph-Break Type

Short name describing what triggered the graph break

torch.compile call with > 1 args

Context

Values or code snippet captured at the break point

args={args}, kwargs={kwargs}

Explanation

Explanation of why the graph break was triggered

Attempted to call torch.compile with > 1 args. Dynamo does not support this.

Hints

Hints on how to resolve the graph break

Additional Information

Example code that causes the graph break is:

import torch

def g(x):
    return x + 1

@torch.compile(backend="eager") 
def f(x):
    return torch.compile(g, False)(x)

f(torch.randn(10, 10))

Back to Registry