def METHOD_NAME(self, device_option, alpha, order, inplace=False):
    outputs = ['output' if not inplace else "input"]
    op = core.CreateOperator(
        'LeakyRelu',
        ['input'],
        outputs,
        alpha=alpha,
        device_option=device_option)
    return op