MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/activations.py:51–53  ·  view source on GitHub ↗
(self, dim=-1)

Source from the content-addressed store, hash-verified

49
50class GLU(nn.Module):
51 def __init__(self, dim=-1):
52 super().__init__()
53 self.dim = dim
54
55 def forward(self, x):
56 a, b = x.chunk(2, dim=self.dim)

Callers 14

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected