Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ __init__
Method
__init__
imperative/python/megengine/module/rnn.py:389–391 ·
view source on GitHub ↗
(self, *args, **kwargs)
Source
from the content-addressed store, hash-verified
387
""
"
388
389
def
__init__(self, *args, **kwargs) -> None:
390
self.nonlinearity = kwargs.pop(
"nonlinearity"
,
"tanh"
)
391
super(RNN, self).__init__(*args, **kwargs)
392
393
def
create_cell(self, layer):
394
if
layer == 0:
Callers
5
__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