コード例 #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)
コード例 #2
0
ファイル: data_flow_ops.py プロジェクト: DapengLan/tensorflow
  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)