parameters: (self,
                 name: str,
                 sampler: reverb_types.SelectorType,
                 remover: reverb_types.SelectorType,
                 max_size: int,
                 rate_limiter: rate_limiters.RateLimiter,
                 max_times_sampled: int = 0,
                 extensions: Sequence[TableExtensionBase] = (),
                 signature: Optional[reverb_types.SpecNest] = None)
docstring: Constructor of the Table.
  
      Args:
        name: Name of the priority table.
        sampler: The strategy to use when selecting samples.
        remover: The strategy to use when selecting which items to remove.
        max_size: The maximum number of items which the replay is allowed to hold.
          When an item is inserted into an already full priority table the
          `remover` is used for selecting which item to remove before proceeding
          with the new insert.
        rate_limiter: Manages the data flow by limiting the sample and insert
          calls.
        max_times_sampled: Maximum number of times an item can be sampled before
          it is deleted. Any value < 1 is ignored and means there is no limit.
        extensions: Optional sequence of extensions used to add extra features to
          the table.
        signature: Optional nested structure containing `tf.TypeSpec` objects,
          describing the schema of items in this table.
  
      Raises:
        ValueError: If name is empty.
        ValueError: If max_size <= 0.
docstring_summary: Constructor of the Table.
docstring_tokens: Constructor of the Table .
function: def __init__(self,
                 name: str,
                 sampler: reverb_types.SelectorType,
                 remover: reverb_types.SelectorType,
                 max_size: int,
                 rate_limiter: rate_limiters.RateLimiter,
                 max_times_sampled: int = 0,
                 extensions: Sequence[TableExtensionBase] = (),
                 signature: Optional[reverb_types.SpecNest] = None):
      """Constructor of the Table.
  
      Args:
        name: Name of the priority table.
        sampler: The strategy to use when selecting samples.
        remover: The strategy to use when selecting which items to remove.
        max_size: The maximum number of items which the replay is allowed to hold.
          When an item is inserted into an already full priority table the
          `remover` is used for selecting which item to remove before proceeding
          with the new insert.
        rate_limiter: Manages the data flow by limiting the sample and insert
          calls.
        max_times_sampled: Maximum number of times an item can be sampled before
          it is deleted. Any value < 1 is ignored and means there is no limit.
        extensions: Optional sequence of extensions used to add extra features to
          the table.
        signature: Optional nested structure containing `tf.TypeSpec` objects,
          describing the schema of items in this table.
  
      Raises:
        ValueError: If name is empty.
        ValueError: If max_size <= 0.
      """
      if not name:
        raise ValueError('name must be nonempty')
      if max_size <= 0:
        raise ValueError('max_size (%d) must be a positive integer' % max_size)
  
      # Merge the c++ extensions into a single list.
      internal_extensions = []
      for extension in extensions:
        internal_extensions += list(extension.build_internal_extensions(name))
  
      if signature:
        flat_signature = tree.flatten(signature)
        for s in flat_signature:
          if not isinstance(s, tensor_spec.TensorSpec):
            raise ValueError(f'Unsupported signature spec: {s}')
        signature_proto_str = (
            nested_structure_coder.encode_structure(
                signature).SerializeToString())
      else:
        signature_proto_str = None
  
      self.internal_table = pybind.Table(
          name=name,
          sampler=sampler,
          remover=remover,
          max_size=max_size,
          max_times_sampled=max_times_sampled,
          rate_limiter=rate_limiter.internal_limiter,
          extensions=internal_extensions,
          signature=signature_proto_str)
function_tokens: def __init__ ( self , name : str , sampler : reverb_types . SelectorType , remover : reverb_types . SelectorType , max_size : int , rate_limiter : rate_limiters . RateLimiter , max_times_sampled : int = 0 , extensions : Sequence [ TableExtensionBase ] = ( ) , signature : Optional [ reverb_types . SpecNest ] = None ) : if not name : raise ValueError ( 'name must be nonempty' ) if max_size <= 0 : raise ValueError ( 'max_size (%d) must be a positive integer' % max_size ) # Merge the c++ extensions into a single list. internal_extensions = [ ] for extension in extensions : internal_extensions += list ( extension . build_internal_extensions ( name ) ) if signature : flat_signature = tree . flatten ( signature ) for s in flat_signature : if not isinstance ( s , tensor_spec . TensorSpec ) : raise ValueError ( f'Unsupported signature spec: {s}' ) signature_proto_str = ( nested_structure_coder . encode_structure ( signature ) . SerializeToString ( ) ) else : signature_proto_str = None self . internal_table = pybind . Table ( name = name , sampler = sampler , remover = remover , max_size = max_size , max_times_sampled = max_times_sampled , rate_limiter = rate_limiter . internal_limiter , extensions = internal_extensions , signature = signature_proto_str )