(ctx, *args, **kwargs)
| 8 | def contiguous(fn): |
| 9 | @functools.wraps(fn) |
| 10 | def wrapper(ctx, *args, **kwargs): |
| 11 | return fn(ctx, |
| 12 | *(i if not isinstance(i, torch.Tensor) else i.contiguous() for i in args), |
| 13 | **{k: (v if not isinstance(v, torch.Tensor) else v.contiguous()) for k, v in kwargs.items()}) |
| 14 | return wrapper |
| 15 | |
| 16 |
nothing calls this directly
no outgoing calls
no test coverage detected