MCPcopy Create free account
hub / github.com/Sense-GVT/DeCLIP / Wrapper

Class Wrapper

prototype/tools/convert.py:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19class Wrapper(nn.Module):
20 def __init__(self, model):
21 super(Wrapper, self).__init__()
22 self.model = model
23 self.softmax = nn.Softmax(dim=1)
24
25 def forward(self, x):
26 x = self.model(x)
27 x = self.softmax(x)
28 return x
29
30
31class KestrelSolver(ClsSolver):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected