MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _stack_h_n

Method _stack_h_n

imperative/python/megengine/module/rnn.py:584–587  ·  view source on GitHub ↗
(self, h_n)

Source from the content-addressed store, hash-verified

582 return (fn(hx[0]), fn(hx[1]))
583
584 def _stack_h_n(self, h_n):
585 h = [tup[0] for tup in h_n]
586 c = [tup[1] for tup in h_n]
587 return (stack(h, axis=0), stack(c, axis=0))

Callers

nothing calls this directly

Calls 1

stackFunction · 0.50

Tested by

no test coverage detected