这是indexloc提供的服务,不要输入任何密码
Skip to content

v0.3.2 #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tianshou/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tianshou import data, env, utils, policy, trainer, exploration


__version__ = "0.3.1"
__version__ = "0.3.2"

__all__ = [
"env",
Expand Down
2 changes: 2 additions & 0 deletions tianshou/data/buffer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import h5py
import torch
import warnings
import numpy as np
from numbers import Number
from typing import Any, Dict, List, Tuple, Union, Optional
Expand Down Expand Up @@ -412,6 +413,7 @@ class ListReplayBuffer(ReplayBuffer):

def __init__(self, **kwargs: Any) -> None:
super().__init__(size=0, ignore_obs_next=False, **kwargs)
warnings.warn("ListReplayBuffer will be removed in version 0.4.0.")

def sample(self, batch_size: int) -> Tuple[Batch, np.ndarray]:
raise NotImplementedError("ListReplayBuffer cannot be sampled!")
Expand Down