Exemplo n.º 1
0
    def size(self, name=None):
        """Compute the number of elements in this queue.

    Args:
      name: A name for the operation (optional).

    Returns:
      A scalar tensor containing the number of elements in this queue.
    """
        if name is None:
            name = "%s_Size" % self._name
        return gen_data_flow_ops._queue_size(self._queue_ref, name=name)
Exemplo n.º 2
0
  def size(self, name=None):
    """Compute the number of elements in this queue.

    Args:
      name: A name for the operation (optional).

    Returns:
      A scalar tensor containing the number of elements in this queue.
    """
    if name is None:
      name = "%s_Size" % self._name
    return gen_data_flow_ops._queue_size(self._queue_ref, name=name)