Module: tf_agents.utils.object_identity

View source on GitHub

Utilities for collecting objects based on "is" comparison.

Classes

class ObjectIdentityDictionary: A mutable mapping data structure which compares using "is".

class ObjectIdentitySet: Like the built-in set, but compares objects with "is".

class ObjectIdentityWeakKeyDictionary: Like weakref.WeakKeyDictionary, but compares objects with "is".

class ObjectIdentityWeakSet: Like weakref.WeakSet, but compares objects with "is".

class Reference: Reference that refers an object.