Shortcuts

Typedef c10::OptionalBase

Typedef Documentation

using c10::OptionalBase = std::conditional_t<detail_::is_arrayref<T>::value, arrayref_optional_base<T>, std::conditional_t<std::is_trivially_destructible<T>::value && std::is_trivially_copyable<T>::value && std::is_copy_constructible<trivially_copyable_optimization_optional_base<T>>::value && std::is_copy_assignable<trivially_copyable_optimization_optional_base<T>>::value, trivially_copyable_optimization_optional_base<T>, std::conditional_t<std::is_trivially_destructible<T>::value, constexpr_optional_base<std::remove_const_t<T>>, optional_base<std::remove_const_t<T>>>>>

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