Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amend
Browse files Browse the repository at this point in the history
vmoens committed Mar 5, 2024
1 parent 17e4fe2 commit 17b96c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions torchrl/modules/models/models.py
Original file line number Diff line number Diff line change
@@ -226,9 +226,11 @@ def __init__(
)

self._activation_kwargs_iter = _iter_maybe_over_single(
activation_kwargs, n=self.depth
activation_kwargs, n=self.depth + self.activate_last_layer
)
self._norm_kwargs_iter = _iter_maybe_over_single(
norm_kwargs, n=self.depth + self.activate_last_layer
)
self._norm_kwargs_iter = _iter_maybe_over_single(norm_kwargs, n=self.depth)
self._layer_kwargs_iter = _iter_maybe_over_single(
layer_kwargs, n=self.depth + 1
)

0 comments on commit 17b96c8

Please sign in to comment.