Explorar o código

实现AlexNet白盒水印集成

liyan hai 1 ano
pai
achega
456cc5166c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      model/Alexnet.py

+ 1 - 1
model/Alexnet.py

@@ -54,7 +54,7 @@ class Alexnet(nn.Module):
         
     def forward(self, x):
         x = self.features(x)
-        x = x.view(x.size(0), -1)
+        x = x.reshape(x.size(0), -1)
         x = self.classifier(x)
         return x