def METHOD_NAME(self, is_infer=False):
    sparse_input_ids = [
        paddle.static.data(
            name="field_" + str(i),
            shape=[None, self.max_len],
            dtype="int64") for i in range(0, 23)
    ]
    label_ctr = paddle.static.data(
        name="ctr", shape=[None, 1], dtype="int64")
    label_cvr = paddle.static.data(
        name="cvr", shape=[None, 1], dtype="int64")
    inputs = sparse_input_ids + [label_ctr] + [label_cvr]
    if is_infer:
        return inputs
    else:
        return inputs