mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-11 11:53:01 +08:00
Remove tf logger
This commit is contained in:
@@ -41,9 +41,7 @@ class Logger(object):
|
||||
self.all_steps = {}
|
||||
|
||||
def to_numpy(self, v):
|
||||
if isinstance(v, torch.autograd.Variable):
|
||||
v = v.data
|
||||
if isinstance(v, torch.FloatTensor):
|
||||
if isinstance(v, torch.Tensor):
|
||||
v = v.cpu().detach().numpy()
|
||||
return v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user