MCPcopy Create free account
hub / github.com/THUYimingLi/BackdoorBox / __init__

Method __init__

core/attacks/AdaptivePatch.py:200–201  ·  view source on GitHub ↗
(self, y_target)

Source from the content-addressed store, hash-verified

198
199class ModifyTarget:
200 def __init__(self, y_target):
201 self.y_target = y_target
202
203 def __call__(self, y_target):
204 return self.y_target

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected