This commit is contained in:
Nataniel Ruiz
2019-12-23 16:47:52 -04:00
parent 41a2b97802
commit 1b162241ed
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@ class LinfPGDAttack(object):
output, feats = self.model(X, c_trg)
if self.feat:
print('self.feat ', self.feat)
output = feats[self.feat]
y = np.zeros(output.shape)
y = torch.FloatTensor(y).to(self.device)
+1 -1
View File
@@ -69,7 +69,7 @@ class Generator(nn.Module):
print('test')
x = layer(x)
feature_maps.append(x)
print(feature_maps.shape)
print(len(feature_maps))
return x, feature_maps