MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / dpc_conv

Function dpc_conv

network/utils.py:249–260  ·  view source on GitHub ↗
(in_dim, reduction_dim, dil, separable)

Source from the content-addressed store, hash-verified

247
248
249def dpc_conv(in_dim, reduction_dim, dil, separable):
250 if separable:
251 groups = reduction_dim
252 else:
253 groups = 1
254
255 return nn.Sequential(
256 nn.Conv2d(in_dim, reduction_dim, kernel_size=3, dilation=dil,
257 padding=dil, bias=False, groups=groups),
258 nn.BatchNorm2d(reduction_dim),
259 nn.ReLU(inplace=True)
260 )
261
262
263class DPC(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected