From d5d521b3295e716eca67c49295bb4db8c5b47a2a Mon Sep 17 00:00:00 2001 From: Jiayi Weng Date: Sun, 19 Mar 2023 17:40:47 -0700 Subject: [PATCH] fix conda installation command (#830) close #828 --- README.md | 2 +- docs/index.rst | 2 +- tianshou/utils/net/common.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d6a9300..64bf561 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ $ pip install tianshou If you use Anaconda or Miniconda, you can install Tianshou from conda-forge through the following command: ```bash -$ conda install -c conda-forge tianshou +$ conda install tianshou -c conda-forge ``` You can also install with the newest version through GitHub: diff --git a/docs/index.rst b/docs/index.rst index 09098cb..9ddfb07 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -75,7 +75,7 @@ If you use Anaconda or Miniconda, you can install Tianshou from conda-forge thro .. code-block:: bash - $ conda -c conda-forge install tianshou + $ conda install tianshou -c conda-forge You can also install with the newest version through GitHub: diff --git a/tianshou/utils/net/common.py b/tianshou/utils/net/common.py index 1ce3946..869e2c3 100644 --- a/tianshou/utils/net/common.py +++ b/tianshou/utils/net/common.py @@ -36,11 +36,11 @@ def miniblock( layers: List[nn.Module] = [linear_layer(input_size, output_size)] if norm_layer is not None: if isinstance(norm_args, tuple): - layers += [norm_layer(output_size, *norm_args)] # type: ignore + layers += [norm_layer(output_size, *norm_args)] elif isinstance(norm_args, dict): - layers += [norm_layer(output_size, **norm_args)] # type: ignore + layers += [norm_layer(output_size, **norm_args)] else: - layers += [norm_layer(output_size)] # type: ignore + layers += [norm_layer(output_size)] if activation is not None: if isinstance(act_args, tuple): layers += [activation(*act_args)]