minor reformat (#2)
* update atari.py * fix setup.py pass the pytest * fix setup.py pass the pytest
This commit is contained in:
parent
fdc969b830
commit
3c0a09fefd
10
setup.py
10
setup.py
@ -37,11 +37,19 @@ setup(
|
||||
'examples', 'examples.*',
|
||||
'docs', 'docs.*']),
|
||||
install_requires=[
|
||||
'gym',
|
||||
'gym>=0.15.0',
|
||||
'tqdm',
|
||||
'numpy',
|
||||
'cloudpickle',
|
||||
'tensorboard',
|
||||
'torch>=1.4.0',
|
||||
],
|
||||
extras_require={
|
||||
'atari': [
|
||||
'atari_py',
|
||||
],
|
||||
'mujoco': [
|
||||
'mujoco_py',
|
||||
]
|
||||
},
|
||||
)
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
from tianshou.data import ReplayBuffer
|
||||
|
||||
if __name__ == '__main__':
|
||||
from env import MyTestEnv
|
||||
else: # pytest
|
||||
|
||||
@ -11,6 +11,7 @@ else: # pytest
|
||||
|
||||
class MyPolicy(BasePolicy):
|
||||
"""docstring for MyPolicy"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
|
||||
1
tianshou/env/vecenv.py
vendored
1
tianshou/env/vecenv.py
vendored
@ -1,6 +1,7 @@
|
||||
import numpy as np
|
||||
from abc import ABC, abstractmethod
|
||||
from multiprocessing import Process, Pipe
|
||||
|
||||
try:
|
||||
import ray
|
||||
except ImportError:
|
||||
|
||||
@ -5,6 +5,8 @@ import torch.nn.functional as F
|
||||
|
||||
from tianshou.data import Batch
|
||||
from tianshou.policy import BasePolicy
|
||||
|
||||
|
||||
# from tianshou.exploration import OUNoise
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user