Add BaseAgent

This commit is contained in:
Shangtong Zhang committed 2018-04-05 22:44:38 -06:00
1 parent 549e4af3b8
commit 5fbc1e2e3f
11 files changed
+41 -174

No files matched your search

+18
View File
@@ -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