parent
efdf72cb31
commit
d5d521b329
@ -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:
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user