shufflechannel.py 535 字节
Newer Older
S
SunAhong1993 已提交
1 2 3 4 5 6 7 8 9 10
from .register import register
from x2paddle.core.util import *


def shufflechannel_shape(input_shape):
    return input_shape


def shufflechannel_layer(inputs, group=None, input_shape=None, name=None):
    input = inputs[0]
S
SunAhong1993 已提交
11
    out = fluid.layers.shuffle_channel(x=input, group=group)
S
SunAhong1993 已提交
12 13 14 15 16 17 18 19
    return out


def shufflechannel_weights(name, data=None):
    weights_name = []
    return weights_name


J
jiangjiajun 已提交
20 21 22 23 24
register(
    kind='ShuffleChannel',
    shape=shufflechannel_shape,
    layer=shufflechannel_layer,
    weights=shufflechannel_weights)