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

Method run_pyt

kernels/window_process/unit_test.py:206–209  ·  view source on GitHub ↗
(t=1000)

Source from the content-addressed store, hash-verified

204
205 # SwinTransformer official
206 def run_pyt(t=1000):
207 for _ in range(t):
208 expected = reverse_pyt_forward(input1, self.shift_size, self.window_size, self.H, self.W)
209 expected.backward(d_loss_tensor)
210
211 # my op
212 def run_fusedop(t=1000):

Callers

nothing calls this directly

Calls 2

reverse_pyt_forwardFunction · 0.85
backwardMethod · 0.45

Tested by

no test coverage detected