def Input(shape=None, batch_shape=None, name=None, dtype=K.floatx(), sparse=False, tensor=None):
 if ((not batch_shape) and (tensor is None)):
  assert shape, 'Please provide to Input either a `shape` or a `batch_shape` argument. Note that `shape` does not include the batch dimension.'
 if (shape and (not batch_shape)):
  batch_shape = ((None,) + tuple(shape))
 input_layer = InputLayer(batch_input_shape=batch_shape, name=name, input_dtype=dtype, sparse=sparse, input_tensor=tensor)
 outputs = input_layer.inbound_nodes[0].output_tensors
 if (len(outputs) == 1):
  return outputs[0]
 else:
  return outputs

def Input ( shape = None , batch_shape = None , name = None , dtype = K . floatx ( ) , sparse = False , tensor = None ) : if ( ( not batch_shape ) and ( tensor is None ) ) : assert shape , 'Please provide to Input either a `shape` or a `batch_shape` argument. Note that `shape` does not include the batch dimension.' if ( shape and ( not batch_shape ) ) : batch_shape = ( ( None , ) + tuple ( shape ) ) input_layer = InputLayer ( batch_input_shape = batch_shape , name = name , input_dtype = dtype , sparse = sparse , input_tensor = tensor ) outputs = input_layer . inbound_nodes [ 0 ] . output_tensors if ( len ( outputs ) == 1 ) : return outputs [ 0 ] else : return outputs
input() is used to instantiate a keras tensor .