Fix a bug of replay

This commit is contained in:
Shangtong Zhang committed 2017-05-26 15:18:45 -06:00
1 parent 45a3f00d32
commit d77cc46cbf
4 files changed
+17 -42

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ class FullyConnectedNet(nn.Module):
print 'Network transferred.'
def forward(self, x):
x = x.reshape((x.shape[0], -1))
x = torch.from_numpy(np.asarray(x, dtype='float32'))
if self.gpu:
x = x.cuda()