|  View source on GitHub | 
Reference that refers an object.
tf_agents.utils.object_identity.Reference(
    wrapped
)
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
| Attributes | |
|---|---|
| unwrapped | |
Methods
deref
deref()
Returns the referenced object.
x_ref = Reference(x)
print(x is x_ref.deref())
==> True
__eq__
__eq__(
    other
)
Return self==value.
__gt__
__gt__(
    other
)
Return self>value.
__lt__
__lt__(
    other
)
Return self<value.
__ne__
__ne__(
    other
)
Return self!=value.