tf_agents.utils.object_identity.Reference

Reference that refers an object.

x = [1]
y = [1]

x_ref1 = Reference(x)
x_ref2 = Reference(x)
y_ref2 = Reference(y)

print(x_ref1 == x_ref2)
==> True

print(x_ref1 == y)
==> False

unwrapped

Methods

deref

View source

Returns the referenced object.

x_ref = Reference(x)
print(x is x_ref.deref())
==> True

__eq__

View source

Return self==value.

__gt__

View source

Return self>value.

__lt__

View source

Return self<value.

__ne__

View source

Return self!=value.