(ctx, grad_in)
| 26 | |
| 27 | @staticmethod |
| 28 | def backward(ctx, grad_in): |
| 29 | B = ctx.B |
| 30 | H = ctx.H |
| 31 | W = ctx.W |
| 32 | C = ctx.C |
| 33 | shift_size = ctx.shift_size |
| 34 | window_size = ctx.window_size |
| 35 | |
| 36 | grad_out = swin_window_process.roll_and_window_partition_backward(grad_in, B, H, W, C, shift_size, window_size) |
| 37 | return grad_out, None, None, None, None, None, None, None |
| 38 | |
| 39 | |
| 40 | class WindowProcessReverse(torch.autograd.Function): |
no outgoing calls
no test coverage detected