Shortcuts

Function at::_assert_tensor_metadata

Function Documentation

inline void at::_assert_tensor_metadata(const at::Tensor &a, at::OptionalIntArrayRef size = ::std::nullopt, at::OptionalIntArrayRef stride = ::std::nullopt, ::std::optional<at::ScalarType> dtype = ::std::nullopt, ::std::optional<at::Device> device = ::std::nullopt, ::std::optional<at::Layout> layout = ::std::nullopt)

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