Module: tf.keras.utils
Stay organized with collections
Save and categorize content based on your preferences.
Keras utilities.
Classes
class CustomObjectScope
: Provides a scope that changes to _GLOBAL_CUSTOM_OBJECTS
cannot escape.
class GeneratorEnqueuer
: Builds a queue out of a data generator.
class HDF5Matrix
: Representation of HDF5 dataset to be used instead of a Numpy array.
class OrderedEnqueuer
: Builds a Enqueuer from a Sequence.
class Progbar
: Displays a progress bar.
class Sequence
: Base object for fitting to a sequence of data, such as a dataset.
class SequenceEnqueuer
: Base class to enqueue inputs.
Functions
convert_all_kernels_in_model(...)
: Converts all convolution kernels in a model from Theano to TensorFlow.
custom_object_scope(...)
: Provides a scope that changes to _GLOBAL_CUSTOM_OBJECTS
cannot escape.
deserialize_keras_object(...)
get_custom_objects(...)
: Retrieves a live reference to the global dictionary of custom objects.
get_file(...)
: Downloads a file from a URL if it not already in the cache.
get_source_inputs(...)
: Returns the list of input tensors necessary to compute tensor
.
model_to_dot(...)
: Convert a Keras model to dot format.
multi_gpu_model(...)
: Replicates a model on different GPUs. (deprecated)
normalize(...)
: Normalizes a Numpy array.
plot_model(...)
: Converts a Keras model to dot format and save to a file.
serialize_keras_object(...)
to_categorical(...)
: Converts a class vector (integers) to binary class matrix.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[],null,["# Module: tf.keras.utils\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/utils) |\n\nKeras utilities.\n\nClasses\n-------\n\n[`class CustomObjectScope`](../../tf/keras/utils/CustomObjectScope): Provides a scope that changes to `_GLOBAL_CUSTOM_OBJECTS` cannot escape.\n\n[`class GeneratorEnqueuer`](../../tf/keras/utils/GeneratorEnqueuer): Builds a queue out of a data generator.\n\n[`class HDF5Matrix`](../../tf/keras/utils/HDF5Matrix): Representation of HDF5 dataset to be used instead of a Numpy array.\n\n[`class OrderedEnqueuer`](../../tf/keras/utils/OrderedEnqueuer): Builds a Enqueuer from a Sequence.\n\n[`class Progbar`](../../tf/keras/utils/Progbar): Displays a progress bar.\n\n[`class Sequence`](../../tf/keras/utils/Sequence): Base object for fitting to a sequence of data, such as a dataset.\n\n[`class SequenceEnqueuer`](../../tf/keras/utils/SequenceEnqueuer): Base class to enqueue inputs.\n\nFunctions\n---------\n\n[`convert_all_kernels_in_model(...)`](../../tf/keras/utils/convert_all_kernels_in_model): Converts all convolution kernels in a model from Theano to TensorFlow.\n\n[`custom_object_scope(...)`](../../tf/keras/utils/custom_object_scope): Provides a scope that changes to `_GLOBAL_CUSTOM_OBJECTS` cannot escape.\n\n[`deserialize_keras_object(...)`](../../tf/keras/utils/deserialize_keras_object)\n\n[`get_custom_objects(...)`](../../tf/keras/utils/get_custom_objects): Retrieves a live reference to the global dictionary of custom objects.\n\n[`get_file(...)`](../../tf/keras/utils/get_file): Downloads a file from a URL if it not already in the cache.\n\n[`get_source_inputs(...)`](../../tf/keras/utils/get_source_inputs): Returns the list of input tensors necessary to compute `tensor`.\n\n[`model_to_dot(...)`](../../tf/keras/utils/model_to_dot): Convert a Keras model to dot format.\n\n[`multi_gpu_model(...)`](../../tf/keras/utils/multi_gpu_model): Replicates a model on different GPUs. (deprecated)\n\n[`normalize(...)`](../../tf/keras/utils/normalize): Normalizes a Numpy array.\n\n[`plot_model(...)`](../../tf/keras/utils/plot_model): Converts a Keras model to dot format and save to a file.\n\n[`serialize_keras_object(...)`](../../tf/keras/utils/serialize_keras_object)\n\n[`to_categorical(...)`](../../tf/keras/utils/to_categorical): Converts a class vector (integers) to binary class matrix."]]