GB6815

Graph-Break Type

Short name describing what triggered the graph break

ContextVar mutation not supported

Context

Values or code snippet captured at the break point

ContextVar(‘{self.cv_obj.name}’).{name}()

Explanation

Explanation of why the graph break was triggered

ContextVar.{name}() is not yet supported inside torch.compile. Move the .{name}() call outside the compiled region.

Hints

Hints on how to resolve the graph break

Additional Information

Click here to add Additional Info

Back to Registry