TensorDictBase.non_tensor_items#
- TensorDictBase.non_tensor_items(include_nested: bool = False)#
Returns all non-tensor leaves, maybe recursively.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.