MCPcopy Index your code
hub / github.com/microsoft/Swin-Transformer / backward

Method backward

kernels/window_process/unit_test.py:28–37  ·  view source on GitHub ↗
(ctx, grad_in)

Source from the content-addressed store, hash-verified

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
40class WindowProcessReverse(torch.autograd.Function):

Callers 7

__call__Method · 0.45
train_one_epochFunction · 0.45
train_one_epochFunction · 0.45
run_pytMethod · 0.45
run_fusedopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected