27#include "neml2/misc/types.h"
32template <std::
size_t N>
52template <std::
size_t N>
54 const std::array<std::size_t, N> & intrsc_intmd_dims,
55 const std::array<TensorShape, N> & base_shapes,
56 const std::string & debug_name =
"<anonymous>");
63template <std::
size_t N>
65 const std::array<std::size_t, N> & intrsc_intmd_dims,
66 const std::array<TensorShape, N> & base_shapes,
67 const std::string & debug_name =
"<anonymous>");
72template <std::
size_t N>
74 const std::array<TensorShape, N> & intmd_shapes,
75 const std::array<TensorShape, N> & base_shapes);
80template <std::
size_t N>
82 const std::array<TensorShape, N> & intmd_shapes,
83 const std::array<TensorShape, N> & base_shapes);
Derivative wrapper.
Definition Derivative.h:66
Definition DiagnosticsInterface.h:31
Tensor push_intrsc_intmd_dim(const Tensor &t, Size dim)
Move the leading dim base dimensions to intermediate dimensions.
Tensor pop_intrsc_intmd_dim(const Tensor &t, Size dim)
Move the trailing dim intermediate dimensions to the base.
int64_t Size
Definition types.h:71
Tensor to_assembly(const Tensor &from, const std::array< TensorShape, N > &intmd_shapes, const std::array< TensorShape, N > &base_shapes)
Tensor from_assembly(const Tensor &from, const std::array< TensorShape, N > &intmd_shapes, const std::array< TensorShape, N > &base_shapes)