mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-09 11:13:47 +08:00
Fix a bug of replay
This commit is contained in:
@@ -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