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

Function update_with_proxy

exir/wrap.py:26–32  ·  view source on GitHub ↗
(t: torch.Tensor, proxy: torch.fx.Proxy)

Source from the content-addressed store, hash-verified

24
25
26def update_with_proxy(t: torch.Tensor, proxy: torch.fx.Proxy) -> torch.Tensor:
27 unwrapped = unwrap_functional(t)
28 assert isinstance(unwrapped, PythonTensor)
29 unwrapped.update_proxy(proxy)
30 if is_functionaltensor(t): # type: ignore
31 _assert_wrapped_functional(unwrapped, t)
32 return t

Callers

nothing calls this directly

Calls 2

unwrap_functionalFunction · 0.90
update_proxyMethod · 0.80

Tested by

no test coverage detected