mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-08 11:39:05 +08:00
Add BaseAgent
This commit is contained in:
1 parent
549e4af3b8
commit
5fbc1e2e3f
11 files changed
+41
-174
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#######################################################################
|
||||
# Copyright (C) 2017 Shangtong Zhang(zhangshangtong.cpp@gmail.com) #
|
||||
# Permission given to modify the code as long as you keep this #
|
||||
# declaration at the top #
|
||||
#######################################################################
|
||||
|
||||
import torch
|
||||
|
||||
class BaseAgent:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
if hasattr(self.task, 'close'):
|
||||
self.task.close()
|
||||
|
||||
def save(self, filename):
|
||||
pass
|
||||
Reference in new issue
Block a user