MCPcopy Create free account
hub / github.com/chenhaoxing/HDNet / forward

Method forward

models/drconv.py:64–71  ·  view source on GitHub ↗
(self, x, kernel, **kwargs)

Source from the content-addressed store, hash-verified

62 return "xcorr_fast"
63
64 def forward(self, x, kernel, **kwargs):
65 if self.training:
66 if self.use_slow:
67 return xcorr_slow(x, kernel, kwargs)
68 else:
69 return xcorr_fast(x, kernel, kwargs)
70 else:
71 return Corr.apply(x, kernel, 1, kwargs)
72
73class DRConv2d(nn.Module):
74 def __init__(self, in_channels, out_channels, kernel_size, region_num=2, **kwargs):

Callers

nothing calls this directly

Calls 3

xcorr_slowFunction · 0.85
xcorr_fastFunction · 0.85
applyMethod · 0.80

Tested by

no test coverage detected