MCPcopy Index your code
hub / github.com/pytorch/tutorials / baz

Function baz

recipes_source/torch_compiler_set_stance_tutorial.py:83–86  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

81
82@torch.compile
83def baz(x):
84 # error!
85 with torch.compiler.set_stance("force_eager"):
86 return x + 1
87
88
89try:

Calls

no outgoing calls

Tested by

no test coverage detected