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

Function stack

imperative/python/megengine/xla/rules/tensor.py:126–129  ·  view source on GitHub ↗
(inps, axis)

Source from the content-addressed store, hash-verified

124
125
126def stack(inps, axis):
127 assert len(inps) > 0, f"stack inputs should not be empty"
128 inps = [expand_dims(inp, axis) for inp in inps]
129 return concat(inps, axis)
130
131
132@register_lower_rule(mops.Concat, "Concat")

Callers 8

resize_nearestFunction · 0.70
resize_linearFunction · 0.70
resize_nearest_backwardFunction · 0.70
resize_linear_backwardFunction · 0.70
stack_lowerFunction · 0.70
forwardMethod · 0.50
_stack_h_nMethod · 0.50
_stack_h_nMethod · 0.50

Calls 2

expand_dimsFunction · 0.70
concatFunction · 0.70

Tested by

no test coverage detected