This commit is contained in:
Nataniel Ruiz committed 2019-12-23 16:47:52 -04:00
1 parent 41a2b97802
commit 1b162241ed
2 files changed
+2 -1

No files matched your search

+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