LostTech.TensorFlow : API Documentation

Type tf.data

Namespace tensorflow

Public static methods

object get_output_classes(IEnumerable<IGraphNodeBase> dataset_or_iterator)

Returns the output classes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_classes` property.
Parameters
IEnumerable<IGraphNodeBase> dataset_or_iterator
A tf.data.Dataset or `tf.data.IteratorV2`.
Returns
object
A nested structure of Python `type` objects matching the structure of the dataset / iterator elements and specifying the class of the individual components.

object get_output_classes(object dataset_or_iterator)

Returns the output classes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_classes` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or `tf.data.IteratorV2`.
Returns
object
A nested structure of Python `type` objects matching the structure of the dataset / iterator elements and specifying the class of the individual components.

object get_output_classes_dyn(object dataset_or_iterator)

Returns the output classes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_classes` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or `tf.data.IteratorV2`.
Returns
object
A nested structure of Python `type` objects matching the structure of the dataset / iterator elements and specifying the class of the individual components.

object get_output_shapes(IEnumerable<IGraphNodeBase> dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_shapes` property.
Parameters
IEnumerable<IGraphNodeBase> dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.TensorShape objects matching the structure of the dataset / iterator elements and specifying the shape of the individual components.

object get_output_shapes(object dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_shapes` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.TensorShape objects matching the structure of the dataset / iterator elements and specifying the shape of the individual components.

object get_output_shapes_dyn(object dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_shapes` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.TensorShape objects matching the structure of the dataset / iterator elements and specifying the shape of the individual components.

object get_output_types(object dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_types` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.DType objects objects matching the structure of dataset / iterator elements and specifying the shape of the individual components.

object get_output_types(IEnumerable<IGraphNodeBase> dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_types` property.
Parameters
IEnumerable<IGraphNodeBase> dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.DType objects objects matching the structure of dataset / iterator elements and specifying the shape of the individual components.

object get_output_types_dyn(object dataset_or_iterator)

Returns the output shapes of a `Dataset` or `Iterator` elements.

This utility method replaces the deprecated-in-V2 `tf.compat.v1.Dataset.output_types` property.
Parameters
object dataset_or_iterator
A tf.data.Dataset or tf.data.Iterator.
Returns
object
A nested structure of tf.DType objects objects matching the structure of dataset / iterator elements and specifying the shape of the individual components.

Iterator make_initializable_iterator(IEnumerable<IGraphNodeBase> dataset, string shared_name)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be in an uninitialized state, and you must run the `iterator.initializer` operation before using it:
Parameters
IEnumerable<IGraphNodeBase> dataset
A tf.data.Dataset.
string shared_name
(Optional.) If non-empty, the returned iterator will be shared under the given name across multiple sessions that share the same devices (e.g. when using a remote server).
Returns
Iterator
A `tf.compat.v1.data.Iterator` over the elements of `dataset`.
Show Example
dataset =...
            iterator = tf.compat.v1.data.make_initializable_iterator(dataset)
            #...
            sess.run(iterator.initializer) 

Iterator make_initializable_iterator(object dataset, string shared_name)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be in an uninitialized state, and you must run the `iterator.initializer` operation before using it:
Parameters
object dataset
A tf.data.Dataset.
string shared_name
(Optional.) If non-empty, the returned iterator will be shared under the given name across multiple sessions that share the same devices (e.g. when using a remote server).
Returns
Iterator
A `tf.compat.v1.data.Iterator` over the elements of `dataset`.
Show Example
dataset =...
            iterator = tf.compat.v1.data.make_initializable_iterator(dataset)
            #...
            sess.run(iterator.initializer) 

object make_initializable_iterator_dyn(object dataset, object shared_name)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be in an uninitialized state, and you must run the `iterator.initializer` operation before using it:
Parameters
object dataset
A tf.data.Dataset.
object shared_name
(Optional.) If non-empty, the returned iterator will be shared under the given name across multiple sessions that share the same devices (e.g. when using a remote server).
Returns
object
A `tf.compat.v1.data.Iterator` over the elements of `dataset`.
Show Example
dataset =...
            iterator = tf.compat.v1.data.make_initializable_iterator(dataset)
            #...
            sess.run(iterator.initializer) 

object make_one_shot_iterator(IEnumerable<IGraphNodeBase> dataset)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be initialized automatically. A "one-shot" iterator does not support re-initialization.
Parameters
IEnumerable<IGraphNodeBase> dataset
A tf.data.Dataset.
Returns
object
A `tf.compat.v1.data.Iterator` over the elements of this dataset.

object make_one_shot_iterator(object dataset)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be initialized automatically. A "one-shot" iterator does not support re-initialization.
Parameters
object dataset
A tf.data.Dataset.
Returns
object
A `tf.compat.v1.data.Iterator` over the elements of this dataset.

object make_one_shot_iterator_dyn(object dataset)

Creates a `tf.compat.v1.data.Iterator` for enumerating the elements of a dataset.

Note: The returned iterator will be initialized automatically. A "one-shot" iterator does not support re-initialization.
Parameters
object dataset
A tf.data.Dataset.
Returns
object
A `tf.compat.v1.data.Iterator` over the elements of this dataset.

Public properties

PythonFunctionContainer get_output_classes_fn get;

PythonFunctionContainer get_output_shapes_fn get;

PythonFunctionContainer get_output_types_fn get;

PythonFunctionContainer make_initializable_iterator_fn get;

PythonFunctionContainer make_one_shot_iterator_fn get;