(fn: Tensor|str|pathlib.Path)
| 37 | def accept_filename(func: Callable[[Tensor], T]) -> Callable[[Tensor|str|pathlib.Path], T]: |
| 38 | @functools.wraps(func) |
| 39 | def wrapper(fn: Tensor|str|pathlib.Path) -> T: return func(Tensor(pathlib.Path(fn)) if not isinstance(fn, Tensor) else fn) |
| 40 | return wrapper |
| 41 | |
| 42 | @accept_filename |
nothing calls this directly
no test coverage detected
searching dependent graphs…