Skip to content
Snippets Groups Projects
no_attack.py 230 B
Newer Older
Mina Moshfegh's avatar
Mina Moshfegh committed
import torch
import torch.nn as nn
from .base_attack import BaseAttack


class NoOpAttack(BaseAttack):
    def __init__(self, model=None):
        super().__init__(model)

    def generate(self, x, y):
        return x