def _copy_one_through(output, new_output):
    copy_cond = (time >= sequence_length)
    return _on_device((lambda : array_ops.where(copy_cond, output, new_output)), device=new_output.op.device)
def _copy_one_through(output, new_output):
    copy_cond = (time >= sequence_length)
    return _on_device((lambda : array_ops.where(copy_cond, output, new_output)), device=new_output.op.device)