def valid_vars(vars):
    "\n    Note: run_program_op.InferShape requires `X`/'Out' not be null.\n    But it's common in dy2static, fake varBase is created to handle the\n    problem.\n    "
    if vars:
        return vars
    return [core.VarBase(value=[1], name='Fake_var', place=framework._current_expected_place())]
Note: run_program_op.InferShape requires `X`/'Out' not be null.
But it's common in dy2static, fake varBase is created to handle the
problem.
def valid_vars(vars):
    "\n    Note: run_program_op.InferShape requires `X`/'Out' not be null.\n    But it's common in dy2static, fake varBase is created to handle the\n    problem.\n    "
    if vars:
        return vars
    return [core.VarBase(value=[1], name='Fake_var', place=framework._current_expected_place())]