class_docstr: An episodic ReplayBuffer with Uniform sampling.
class_docstr_tok: ["An","episodic","ReplayBuffer","with","Uniform","sampling","."]
docstr: Clears the replay buffer.
  
  Args:
    clear_all_variables: Boolean to indicate whether to clear all variables or
      just the data table and episode lengths (i.e. keep the current episode
      ids that are in flight in the buffer).
  
  Returns:
    An op to clear the buffer.
code: def _clear(self, clear_all_variables=False):
      """Clears the replay buffer.
  
      Args:
        clear_all_variables: Boolean to indicate whether to clear all variables or
          just the data table and episode lengths (i.e. keep the current episode
          ids that are in flight in the buffer).
  
      Returns:
        An op to clear the buffer.
      """
      assignments = [
          self._episode_lengths.assign(
              tf.zeros_like(self._episode_lengths)
          )
      ]
      assignments += [
          self._num_writes.assign(tf.zeros_like(self._num_writes))
      ]
  
      if clear_all_variables:
          zero_vars = self._id_table.variables() + [
              self._episode_completed
          ]
          assignments += [
              var.assign(tf.zeros_like(var)) for var in zero_vars
          ]
          neg_one_vars = [
              self._episodes_loc_to_id_map,
              self._last_episode,
          ]
          assignments += [
              var.assign(_INVALID_EPISODE_ID * tf.ones_like(var))
              for var in neg_one_vars
          ]
  
      return tf.group(
          self._data_table.clear(), assignments, name="clear"
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import gin
  import tensorflow
  from tf_agents import specs
  from tf_agents.replay_buffers import episodic_table
  from tf_agents.replay_buffers import replay_buffer
  from tf_agents.replay_buffers import table
  from tf_agents.utils import common
  from tensorflow.python.data.util import nest
  from tensorflow.python.layers import utils
  from tensorflow.python.ops import list_ops
  from tensorflow.python.ops.distributions import util
label_desc: Use image node_id 14 for calling the EpisodicReplayBuffer obj's underlying member method code with example usage: obj._clear(clear_all_variables) and returns: tf