(self, image)
| 77 | self.scale = 0.4 |
| 78 | |
| 79 | def forward(self, image): |
| 80 | cw, ch = [int(self.scale * x) for x in image.shape[-2:]] |
| 81 | cropped_img = F.center_crop(image, (cw, ch)) |
| 82 | return cropped_img |
| 83 | |
| 84 | class RotationAttack(nn.Module): |
| 85 | def __init__(self): |
nothing calls this directly
no outgoing calls
no test coverage detected