• Docs >
  • Library API >
  • Template Function at::symint::_assert_tensor_metadata(const at::Tensor&, at::OptionalSymIntArrayRef, at::OptionalSymIntArrayRef, ::std::optional<at::ScalarType>, ::std::optional<at::Device>, ::std::optional<at::Layout>)
  • Edit on GitHub
Shortcuts

Template Function at::symint::_assert_tensor_metadata(const at::Tensor&, at::OptionalSymIntArrayRef, at::OptionalSymIntArrayRef, ::std::optional<at::ScalarType>, ::std::optional<at::Device>, ::std::optional<at::Layout>)

Function Documentation

template<typename T, typename = std::enable_if_t<std::is_same_v<T, c10::SymInt>>>
void at::symint::_assert_tensor_metadata(const at::Tensor &a, at::OptionalSymIntArrayRef size = ::std::nullopt, at::OptionalSymIntArrayRef 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