LostTech.TensorFlow : API Documentation

Type QueueBase

Namespace tensorflow

Parent PythonObjectContainer

Interfaces IQueueBase

Base class for queue implementations.

A queue is a TensorFlow data structure that stores tensors across multiple steps, and exposes operations that enqueue and dequeue tensors.

Each queue element is a tuple of one or more tensors, where each tuple component has a static dtype, and may have a static shape. The queue implementations support versions of enqueue and dequeue that handle single elements, versions that support enqueuing and dequeuing a batch of elements at once.

See tf.queue.FIFOQueue and tf.queue.RandomShuffleQueue for concrete implementations of this class, and instructions on how to create them.

Methods

Properties

Public instance methods

object close(bool cancel_pending_enqueues, string name)

Closes the barrier and the FIFOQueue.

This operation signals that no more segments of new sequences will be enqueued. New segments of already inserted sequences may still be enqueued and dequeued if there is a sufficient number filling a batch or allow_small_batch is true. Otherwise dequeue operations will fail immediately.
Parameters
bool cancel_pending_enqueues
(Optional.) A boolean, defaulting to `False`. If `True`, all pending enqueues to the underlying queues will be cancelled, and completing already started sequences is not possible.
string name
Optional name for the op.
Returns
object
The operation that closes the barrier and the FIFOQueue.

object close_dyn(ImplicitContainer<T> cancel_pending_enqueues, object name)

Closes the barrier and the FIFOQueue.

This operation signals that no more segments of new sequences will be enqueued. New segments of already inserted sequences may still be enqueued and dequeued if there is a sufficient number filling a batch or allow_small_batch is true. Otherwise dequeue operations will fail immediately.
Parameters
ImplicitContainer<T> cancel_pending_enqueues
(Optional.) A boolean, defaulting to `False`. If `True`, all pending enqueues to the underlying queues will be cancelled, and completing already started sequences is not possible.
object name
Optional name for the op.
Returns
object
The operation that closes the barrier and the FIFOQueue.

IDictionary<object, object> dequeue(string name)

object dequeue_dyn(object name)

IDictionary<object, object> dequeue_many(object n, string name)

IDictionary<object, object> dequeue_many(object n, PythonFunctionContainer name)

object dequeue_many_dyn(object n, object name)

IDictionary<object, object> dequeue_up_to(IGraphNodeBase n, PythonFunctionContainer name)

IDictionary<object, object> dequeue_up_to(IDictionary<object, object> n, PythonFunctionContainer name)

IDictionary<object, object> dequeue_up_to(IDictionary<object, object> n, string name)

IDictionary<object, object> dequeue_up_to(int n, PythonFunctionContainer name)

IDictionary<object, object> dequeue_up_to(int n, string name)

IDictionary<object, object> dequeue_up_to(IGraphNodeBase n, string name)

object dequeue_up_to_dyn(object n, object name)

object enqueue(object vals, string name)

object enqueue(IEnumerable<object> vals, string name)

object enqueue_dyn(object vals, object name)

object enqueue_many(IDictionary<object, object> vals, string name)

object enqueue_many(IEnumerable<IGraphNodeBase> vals, string name)

object enqueue_many(IGraphNodeBase vals, string name)

object enqueue_many_dyn(object vals, object name)

Tensor is_closed(string name)

object is_closed_dyn(object name)

Public static methods

QueueBase from_list(int index, IEnumerable<object> queues)

QueueBase from_list(IGraphNodeBase index, IEnumerable<object> queues)

object from_list_dyn(object index, object queues)

Public properties

IList<object> dtypes get;

object dtypes_dyn get;

object name get;

object name_dyn get;

IList<object> names get;

object names_dyn get;

object PythonObject get;

object queue_ref get;

object queue_ref_dyn get;

IList<TensorShape> shapes get;

object shapes_dyn get;