set_lazy_legacy¶
- class tensordict.set_lazy_legacy(mode: bool)¶
Sets the behaviour of some methods to a lazy transform.
These methods include
view(),permute(),transpose(),squeeze()andunsqueeze().This property is dynamic, ie. it can be changed during the code execution, but it won’t propagate to sub-processes unless it has been called before the process has been created.