MCPcopy Create free account
hub / github.com/pytorch/executorch / unwrap_proxy

Function unwrap_proxy

exir/tracer.py:180–184  ·  view source on GitHub ↗
(t: LeafValue)

Source from the content-addressed store, hash-verified

178
179
180def unwrap_proxy(t: LeafValue) -> Union[LeafValue, torch.fx.Proxy]:
181 if not isinstance(t, torch.Tensor):
182 return t
183 t = unwrap_functional(t)
184 return t.proxy if isinstance(t, PythonTensor) else t
185
186
187def single_return(

Callers 2

while_loopFunction · 0.90
unwrapMethod · 0.85

Calls 1

unwrap_functionalFunction · 0.85

Tested by

no test coverage detected