(name, dtype, shape, program=None)
Create variable which is used to store the py_func result
Create variable which is used to store the py_func result
Create variable which is used to store the py_func result
def create_tmp_var(name, dtype, shape, program=None):
    """
        Create variable which is used to store the py_func result
    """
    if program is None:
        return fluid.default_main_program().current_block().create_var(
                name=fluid.unique_name.generate(name),
                dtype=dtype, shape=shape)
    else:
        return program.current_block().create_var(
                name=fluid.unique_name.generate(name),
                dtype=dtype, shape=shape)
def create_tmp_var ( name , dtype , shape , program = None ) : if program is None : return fluid . default_main_program ( ) . current_block ( ) . create_var ( name = fluid . unique_name . generate ( name ) , dtype = dtype , shape = shape ) else : return program . current_block ( ) . create_var ( name = fluid . unique_name . generate ( name ) , dtype = dtype , shape = shape )