Commit 9d4b9b7b authored by brianhhu's avatar brianhhu

Clean up unused imports

parent b9728d04
import torch
import numpy as np
import os
from foolbox.models import PyTorchModel
from resnet18.resnet_model import Model
......
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
class Model(nn.Module):
def __init__(self):
......@@ -136,11 +136,12 @@ class Model(nn.Module):
Relu_7 = F.relu(batch_normalization_7_FusedBatchNorm)
conv2d_10_Conv2D_pad = F.pad(Relu_7, (1, 1, 1, 1))
conv2d_10_Conv2D = self.conv2d_10_Conv2D(conv2d_10_Conv2D_pad)
add_3 = conv2d_10_Conv2D + add_2
batch_normalization_8_FusedBatchNorm = self.batch_normalization_8_FusedBatchNorm(add_3)
Relu_8 = F.relu(batch_normalization_8_FusedBatchNorm)
Pad_2 = F.pad(Relu_8, (0, 0, 0, 0), mode = 'constant', value = 0)
Pad_3 = F.pad(Relu_8, (1, 1, 1, 1), mode = 'constant', value = 0)
add_3 = conv2d_10_Conv2D + add_2
batch_normalization_8_FusedBatchNorm = self.batch_normalization_8_FusedBatchNorm(
add_3)
Relu_8 = F.relu(batch_normalization_8_FusedBatchNorm)
Pad_2 = F.pad(Relu_8, (0, 0, 0, 0), mode='constant', value=0)
Pad_3 = F.pad(Relu_8, (1, 1, 1, 1), mode='constant', value=0)
conv2d_11_Conv2D = self.conv2d_11_Conv2D(Pad_2)
conv2d_12_Conv2D = self.conv2d_12_Conv2D(Pad_3)
batch_normalization_9_FusedBatchNorm = self.batch_normalization_9_FusedBatchNorm(conv2d_12_Conv2D)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment