Skip to content

Commit

Permalink
add modules
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleHerndon committed Nov 22, 2024
1 parent 0e100e9 commit 40fbd1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharktank/sharktank/layers/modulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, theta: Theta, double: bool):

self.is_double = double
self.multiplier = 6 if double else 3
self.lin = LinearLayer(theta("lin"))
self.add_module("lin", LinearLayer(theta("lin")))

def forward(self, vec: torch.Tensor) -> tuple[ModulationOut, ModulationOut | None]:
silu_result = ops.elementwise(F.silu, vec)
Expand Down

0 comments on commit 40fbd1a

Please sign in to comment.