-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add function to create arbitrary chained torsos and an example …
…config
- Loading branch information
1 parent
8cd990e
commit 13dc19f
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ---Example of chaining arbitrary torsos--- | ||
actor_network: | ||
pre_torso: | ||
_target_: stoix.networks.base.chained_torsos # we call the chained torsos creation function | ||
_recursive_: false # we disable recursive instantiation for this object as we do the creation manually | ||
torso_cfgs: | ||
|
||
- _target_: stoix.networks.resnet.ResNetTorso | ||
hidden_units_per_group: [64, 64] | ||
blocks_per_group: [1, 1] | ||
use_layer_norm: False | ||
activation: silu | ||
|
||
- _target_: stoix.networks.torso.MLPTorso | ||
layer_sizes: [64, 64] | ||
use_layer_norm: False | ||
activation: relu | ||
|
||
action_head: | ||
_target_: stoix.networks.heads.CategoricalHead | ||
|
||
critic_network: | ||
pre_torso: | ||
_target_: stoix.networks.base.chained_torsos # we call the chained torsos creation function | ||
_recursive_: false # we disable recursive instantiation for this object as we do the creation manually | ||
torso_cfgs: | ||
|
||
- _target_: stoix.networks.resnet.ResNetTorso | ||
hidden_units_per_group: [64, 64] | ||
blocks_per_group: [1, 1] | ||
use_layer_norm: False | ||
activation: silu | ||
|
||
- _target_: stoix.networks.torso.MLPTorso | ||
layer_sizes: [64, 64] | ||
use_layer_norm: False | ||
activation: relu | ||
|
||
critic_head: | ||
_target_: stoix.networks.heads.ScalarCriticHead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters