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

Method transform

transferattack/attack.py:164–165  ·  view source on GitHub ↗
(self, data, **kwargs)

Source from the content-addressed store, hash-verified

162 raise Exception("Unsupported loss {}".format(loss))
163
164 def transform(self, data, **kwargs):
165 return data
166
167 def __call__(self, *input, **kwargs):
168 self.model.eval()

Callers 3

forwardMethod · 0.95
__getitem__Method · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected