Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ddbourgin/numpy-ml
/ __init__
Method
__init__
numpy_ml/tests/nn_torch_models.py:302–304 ·
view source on GitHub ↗
(self, act_fn, **kwargs)
Source
from the content-addressed store, hash-verified
300
301
class
TorchAddLayer(nn.Module):
302
def
__init__(self, act_fn, **kwargs):
303
super(TorchAddLayer, self).__init__()
304
self.act_fn = act_fn
305
306
def
forward(self, Xs):
307
self.Xs = []
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected