Shortcuts

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() and unsqueeze().

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.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources