Unwraps a module if it was compiled with torch.compile()
(module)
| 207 | |
| 208 | |
| 209 | def unwrap_module(module): |
| 210 | """Unwraps a module if it was compiled with torch.compile()""" |
| 211 | return module._orig_mod if is_compiled_module(module) else module |
| 212 | |
| 213 | |
| 214 | def fourier_filter(x_in: "torch.Tensor", threshold: int, scale: int) -> "torch.Tensor": |
no test coverage detected
searching dependent graphs…