(t: torch.Tensor, proxy: torch.fx.Proxy)
| 24 | |
| 25 | |
| 26 | def 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 |
nothing calls this directly
no test coverage detected