fix conda installation command (#830)

close #828
This commit is contained in:
Jiayi Weng 2023-03-19 17:40:47 -07:00 committed by GitHub
parent efdf72cb31
commit d5d521b329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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:

View File

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