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)]