Files
DeepRL/agent/BaseAgent.py
T
2018-04-05 22:44:38 -06:00

19 lines
565 B
Python

#######################################################################
# 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