TensorDictBase.__lt__#
- TensorDictBase.__lt__(other: Any) Self | bool#
Compares the tensordict with
otherleaf by leaf with<.Works as
__eq__(), except that anotherof another type, such asNone, givesFalseand aFutureWarning. Starting with TensorDict 0.17, the default will change to returningNotImplemented, so that Python raises aTypeError, as it does for tensors and for&.- Parameters:
other (TensorDictBase, dict, Tensor or Number) – the value to compare with.
- Returns:
A new tensordict of boolean leaves, or
False.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.