blob: 0365b89b825b67fc11e666a776b1fe2072ffc24a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""
Date: 2022-03-22
Author: [email protected]
Desc: gan based attack, use the subtitute as the D, and G generate the adversarial samples
"""
import torch
import torch.nn as nn
from substituteModel.AutoEncoder import AutoEncoder
class Generator(nn.Module):
"""
generate the adversarial sample
"""
def __init__(self, param):
super(Generator, self).__init__()
|