class_docstr: Gathers slices from a data tensor, based on an indices tensors (``tf.gather`` in Layer form).
  
  Args:
      axis (int or Tensor): the data axis to gather from.
      batch_dims (int): the number of batch dimensions in the data and indices.
class_docstr_tok: ["Gathers","slices","from","a","data","tensor",",","based","on","an","indices","tensors","(","``","tf.gather","``","in","Layer","form",")",".","Args",":","axis","(","int","or","Tensor",")",":","the","data","axis","to","gather","from",".","batch_dims","(","int",")",":","the","number","of","batch","dimensions","in","the","data","and","indices","."]
code: def __init__(self, axis=None, batch_dims=0, **kwargs):
      super().__init__(**kwargs)
      self._axis = axis
      self._batch_dims = batch_dims
  
file_path: stellargraph/stellargraph/layer/misc.py
imports: import tensorflow
  from tensorflow.keras.layers import Layer
  from tensorflow.keras import backend
  import warnings
label_desc: Use image node_id 1 to create a new GatherIndices object from inherited base classes: Layer with example: obj = GatherIndices(axis, batch_dims)