MCPcopy Create free account
hub / github.com/alibaba/MNN / _ChannelShuffle

Function _ChannelShuffle

express/NeuralNetWorkOp.cpp:629–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629VARP _ChannelShuffle(VARP x, int group) {
630 x = _Convert(x, NHWC);
631 x = _Reshape(x, {0, 0, 0, group, -1}, NHWC);
632 x = _Transpose(x, {0, 1, 2, 4, 3});
633 x = _Reshape(x, {0, 0, 0, -1}, NHWC);
634 x = _Convert(x, NC4HW4);
635 return x;
636}
637
638VARP _Reverse(VARP x, VARP axis) {
639 std::unique_ptr<MNN::OpT> op(new MNN::OpT);

Callers 2

shuffleUnitFunction · 0.85
runMethod · 0.85

Calls 3

_ConvertFunction · 0.85
_ReshapeFunction · 0.85
_TransposeFunction · 0.85

Tested by 1

runMethod · 0.68