MCPcopy Create free account
hub / github.com/SooLab/CGFormer / conv_layer

Function conv_layer

model/layers.py:35–38  ·  view source on GitHub ↗
(in_dim, out_dim, kernel_size=1, padding=0, stride=1)

Source from the content-addressed store, hash-verified

33 return x
34
35def conv_layer(in_dim, out_dim, kernel_size=1, padding=0, stride=1):
36 return nn.Sequential(
37 nn.Conv2d(in_dim, out_dim, kernel_size, stride, padding, bias=False),
38 nn.BatchNorm2d(out_dim), nn.ReLU(True))
39
40def hard_softmax(logits, dim):
41 y_soft = logits.softmax(dim)

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected