Skip to content

Commit

Permalink
Fix attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoChateauLaurent committed Oct 8, 2024
1 parent 6259db4 commit 975a6e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shimmer/modules/gw_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,17 @@ def __init__(
fusion_activation_fn (`Callable[[torch.Tensor], torch.Tensor]`): activation
function used to fuse the domains.
"""
super().__init__(domain_modules, workspace_dim, fusion_activation_fn)
super().__init__(domain_modules, workspace_dim)

self.gw_encoders = nn.ModuleDict(gw_encoders)
"""The module's encoders"""

self.gw_decoders = nn.ModuleDict(gw_decoders)
"""The module's decoders"""

self.fusion_activation_fn = fusion_activation_fn
"""Activation function used to fuse the domains."""

def fuse(
self,
x: LatentsDomainGroupT,
Expand Down

0 comments on commit 975a6e0

Please sign in to comment.