GB0211

Graph-Break Type

Short name describing what triggered the graph break

torch.nn.Module with a non-function custom getattr

Context

Values or code snippet captured at the break point

var_getattr {self} {name}

Explanation

Explanation of why the graph break was triggered

Dynamo detected a nn.Module object with a custom __getattr__ method, but this method is not a standard Python function (e.g., it might be implemented in C/C++). Dynamo cannot currently trace into such non-standard __getattr__ methods.

Hints

Hints on how to resolve the graph break

Additional Information

Back to Registry