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

Method __init__

core/attacks/IAD.py:31–32  ·  view source on GitHub ↗
(self, y_target)

Source from the content-addressed store, hash-verified

29
30class ModifyTarget:
31 def __init__(self, y_target):
32 self.y_target = y_target
33
34 def __call__(self, targets):
35 return torch.ones_like(targets) * self.y_target

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected