def partial_program_from(concrete_program):
    inputs = concrete_program.inputs
    if (inputs and isinstance(inputs[0], layers.Layer)):
        inputs = inputs[1:]
    return PartialProgramLayer(concrete_program.main_program, inputs, concrete_program.outputs, concrete_program.parameters)
def partial_program_from(concrete_program):
    inputs = concrete_program.inputs
    if (inputs and isinstance(inputs[0], layers.Layer)):
        inputs = inputs[1:]
    return PartialProgramLayer(concrete_program.main_program, inputs, concrete_program.outputs, concrete_program.parameters)