mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-05 16:20:39 +08:00
19 lines
565 B
Python
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
|