Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shimmer/modules/global_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ def __init__(
workspace_dim: int,
loss_coefs: LossCoefs | Mapping[str, float],
selection_temperature: float = 0.2,
selection_mod: SelectionBase | None = None,
optim_lr: float = 1e-3,
optim_weight_decay: float = 0.0,
scheduler_args: SchedulerArgs | None = None,
Expand All @@ -732,6 +731,7 @@ def __init__(
| None
| OneCycleSchedulerSentinel = OneCycleSchedulerSentinel.DEFAULT,
fusion_activation_fn: Callable[[torch.Tensor], torch.Tensor] = torch.tanh,
selection_mod: SelectionBase | None = None,
) -> None:
"""
Initializes a Global Workspace
Expand Down Expand Up @@ -765,6 +765,8 @@ def __init__(
no scheduler will be used. Defaults to use OneCycleScheduler
fusion_activation_fn (`Callable[[torch.Tensor], torch.Tensor]`): activation
function to fuse the domains.
selection_mod (`SelectionBase | None`): optional custom selection module.
If None (default), uses `RandomSelection`.
"""
domain_mods = freeze_domain_modules(domain_mods)
gw_mod = GWModule(
Expand Down