MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / __init__

Method __init__

vtp/utils/lpips.py:120–124  ·  view source on GitHub ↗
(self, chn_in, chn_out=1, use_dropout=False)

Source from the content-addressed store, hash-verified

118 """A single linear layer which does a 1x1 conv"""
119
120 def __init__(self, chn_in, chn_out=1, use_dropout=False):
121 super(NetLinLayer, self).__init__()
122 layers = [nn.Dropout()] if use_dropout else []
123 layers += [nn.Conv2d(chn_in, chn_out, 1, stride=1, padding=0, bias=False)]
124 self.model = nn.Sequential(*layers)
125
126
127class vgg16(nn.Module):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected