tf_agents.utils.object_identity.ObjectIdentityWeakSet

View source on GitHub

Like weakref.WeakSet, but compares objects with "is".

Inherits From: ObjectIdentitySet

Methods

add

View source

Add an element.

clear

View source

This is slow (creates N new iterators!) but effective.

difference

View source

discard

View source

Remove an element. Do not raise an exception if absent.

intersection

View source

isdisjoint

Return True if two sets have a null intersection.

pop

Return the popped value. Raise KeyError if empty.

remove

Remove an element. If not a member, raise a KeyError.

update

View source

__and__

__contains__

View source

__eq__

Return self==value.

__ge__

Return self>=value.

__gt__

Return self>value.

__iter__

View source

__le__

Return self<=value.

__len__

View source

__lt__

Return self<value.

__or__

__rand__

__ror__

__rsub__

__rxor__

__sub__

__xor__