MCPcopy Create free account
hub / github.com/NarcissusEx/GuardSplat / forward

Method forward

attack_utils.py:117–120  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

115 super().__init__()
116
117 def forward(self, image):
118 out = self.model(image[None])
119 out['x_hat'].clamp_(0, 1)
120 return out['x_hat'].squeeze()
121
122class VAEBmshj2018Attack(VAEAttack):
123 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected