W3cubDocs

/TensorFlow

tf.keras.utils.get_custom_objects

Retrieves a live reference to the global dictionary of custom objects.

Custom objects set using custom_object_scope() are not added to the global dictionary of custom objects, and will not appear in the returned dictionary.

Example:

get_custom_objects().clear()
get_custom_objects()['MyObject'] = MyObject
Returns
Global dictionary mapping registered class names to classes.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_custom_objects