MCPcopy Create free account
hub / github.com/amazon-science/patchcore-inspection / __init__

Method __init__

src/patchcore/common.py:164–166  ·  view source on GitHub ↗
(self, preprocessing_dim)

Source from the content-addressed store, hash-verified

162
163class MeanMapper(torch.nn.Module):
164 def __init__(self, preprocessing_dim):
165 super(MeanMapper, self).__init__()
166 self.preprocessing_dim = preprocessing_dim
167
168 def forward(self, features):
169 features = features.reshape(len(features), 1, -1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected