Shortcuts

Function at::borrow_from_optional_tensor

Function Documentation

inline c10::MaybeOwned<Tensor> at::borrow_from_optional_tensor(const std::optional<Tensor> &opt)

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