def METHOD_NAME(self, params):
    if isinstance(
            params,
            FateTorchLayer) or isinstance(
            params,
            Sequential):
        params.add_optimizer(self)
        params = params.parameters()
    else:
        params = params
    l_param = list(params)
    if len(l_param) == 0:
        # fake parameters, for the case that there are only cust model
        return [t.nn.Parameter(t.Tensor([0]))]
    return l_param