mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-29 12:40:58 +08:00
Fix a bug of replay
This commit is contained in:
1 parent
45a3f00d32
commit
d77cc46cbf
4 files changed
+17
-42
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user