MCPcopy Create free account
hub / github.com/Trustworthy-AI-Group/TransferAttack / __init__

Method __init__

transferattack/utils.py:73–76  ·  view source on GitHub ↗
(self, resize, mean, std)

Source from the content-addressed store, hash-verified

71
72class PreprocessingModel(nn.Module):
73 def __init__(self, resize, mean, std):
74 super(PreprocessingModel, self).__init__()
75 self.resize = transforms.Resize(resize)
76 self.normalize = transforms.Normalize(mean, std)
77
78 def forward(self, x):
79 return self.normalize(self.resize(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected