“c8bb0af79adc8c3cb3eda6a0a5de48835dafa818”上不存在“paddle/fluid/lite/git@gitcode.net:RobotFutures/Paddle.git”
relu6.py 425 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
from .register import register
from x2paddle.core.util import *


def relu6_shape(input_shape):
    return input_shape


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


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


register(
21
    kind='ReLU6', shape=relu6_shape, layer=relu6_layer, weights=relu6_weights)