parameters: (x, y, input_fn, feed_fn, batch_size, shuffle=False, epochs=1)
return_statement: return input_fn, feed_fn
docstring: Make inputs into input and feed functions.
docstring_summary: Make inputs into input and feed functions.
docstring_tokens: Make inputs into input and feed functions .
function: def _get_input_fn(x, y, input_fn, feed_fn, batch_size, shuffle=False, epochs=1):
    """Make inputs into input and feed functions."""
    if input_fn is None:
      if x is None:
        raise ValueError('Either x or input_fn must be provided.')
  
      if contrib_framework.is_tensor(x) or (y is not None and
                                            contrib_framework.is_tensor(y)):
        raise ValueError('Inputs cannot be tensors. Please provide input_fn.')
  
      if feed_fn is not None:
        raise ValueError('Can not provide both feed_fn and x or y.')
  
      df = data_feeder.setup_train_data_feeder(x, y, n_classes=None,
                                               batch_size=batch_size,
                                               shuffle=shuffle,
                                               epochs=epochs)
      return df.input_builder, df.get_feed_dict_fn()
  
    if (x is not None) or (y is not None):
      raise ValueError('Can not provide both input_fn and x or y.')
    if batch_size is not None:
      raise ValueError('Can not provide both input_fn and batch_size.')
  
    return input_fn, feed_fn
function_tokens: def _get_input_fn ( x , y , input_fn , feed_fn , batch_size , shuffle = False , epochs = 1 ) : if input_fn is None : if x is None : raise ValueError ( 'Either x or input_fn must be provided.' ) if contrib_framework . is_tensor ( x ) or ( y is not None and contrib_framework . is_tensor ( y ) ) : raise ValueError ( 'Inputs cannot be tensors. Please provide input_fn.' ) if feed_fn is not None : raise ValueError ( 'Can not provide both feed_fn and x or y.' ) df = data_feeder . setup_train_data_feeder ( x , y , n_classes = None , batch_size = batch_size , shuffle = shuffle , epochs = epochs ) return df . input_builder , df . get_feed_dict_fn ( ) if ( x is not None ) or ( y is not None ) : raise ValueError ( 'Can not provide both input_fn and x or y.' ) if batch_size is not None : raise ValueError ( 'Can not provide both input_fn and batch_size.' ) return input_fn , feed_fn