class_docstr: Builder for SVG0 which constructs individual components of the agent.
class_docstr_tok: ["Builder","for","SVG0","which","constructs","individual","components","of","the","agent","."]
docstr: Create tables to insert data into.
docstr_tok: ["Create","tables","to","insert","data","into","."]
code: def make_replay_tables(
      self,
      environment_spec: specs.EnvironmentSpec,
      sequence_length: int,
  ) -> List[reverb.Table]:
      """Create tables to insert data into."""
      if self._config.samples_per_insert is None:
          # We will take a samples_per_insert ratio of None to mean that there is
          # no limit, i.e. this only implies a min size limit.
          limiter = reverb.rate_limiters.MinSize(
              self._config.min_replay_size
          )
  
      else:
          error_buffer = max(1, self._config.samples_per_insert)
          limiter = reverb.rate_limiters.SampleToInsertRatio(
              min_size_to_sample=self._config.min_replay_size,
              samples_per_insert=self._config.samples_per_insert,
              error_buffer=error_buffer,
          )
  
      extras_spec = {"log_prob": tf.ones(shape=(), dtype=tf.float32)}
      replay_table = reverb.Table(
          name=self._config.replay_table_name,
          sampler=reverb.selectors.Uniform(),
          remover=reverb.selectors.Fifo(),
          max_size=self._config.max_replay_size,
          rate_limiter=limiter,
          signature=reverb_adders.SequenceAdder.signature(
              environment_spec,
              extras_spec=extras_spec,
              sequence_length=sequence_length + 1,
          ),
      )
  
      return [replay_table]
  
imports: import copy
  import dataclasses
  from typing import Iterator, List, Optional, Tuple
  from acme import adders
  from acme import core
  from acme import datasets
  from acme import specs
  from acme.adders import reverb
  from acme.agents import agent
  from acme.agents.tf.svg0_prior import acting
  from acme.agents.tf.svg0_prior import learning
  from acme.tf import utils
  from acme.tf import variable_utils
  from acme.utils import counting
  from acme.utils import loggers
  import reverb
  import sonnet
  import tensorflow
label_desc: Use image node_id 2 for calling the SVG0Builder obj's underlying member method code with example usage: obj.make_replay_tables(environment_spec, sequence_length) and returns: list