TensorDictBase.fill#
- TensorDictBase.fill_(key: NestedKey, value: float | bool) Self#
Fills a tensor pointed by the key with a given scalar value.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.