TensorDictBase.__ne__#
- TensorDictBase.__ne__(other: Any) Self | bool#
Compares the tensordict with
otherleaf by leaf with!=.Works as
__eq__(), except that anotherof another type givesTrue.The result is a new tensordict that is not locked and, except with a tensor
otherof one or more dims, has no dim names.&,~and the arithmetic operators keep the dim names and the lock.- Parameters:
other (TensorDictBase, dict, Tensor or Number) – the value to compare with.
- Returns:
A new tensordict of boolean leaves, or
True.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.