29#include "neml2/misc/types.h"
35template <std::
size_t N>
55template <std::
size_t N>
57 const std::array<std::size_t, N> & intrsc_intmd_dims,
58 const std::array<TensorShape, N> & base_shapes,
59 const std::string & debug_name =
"<anonymous>");
66template <std::
size_t N>
68 const std::array<std::size_t, N> & intrsc_intmd_dims,
69 const std::array<TensorShape, N> & base_shapes,
70 const std::string & debug_name =
"<anonymous>");
75template <std::
size_t N>
77 const std::array<TensorShape, N> & intmd_shapes,
78 const std::array<TensorShape, N> & base_shapes);
83template <std::
size_t N>
85 const std::array<TensorShape, N> & intmd_shapes,
86 const std::array<TensorShape, N> & base_shapes);
93 const std::optional<std::vector<TensorShape>> & intmd_shapes,
94 const std::vector<TensorShape> & base_shapes);
101 const std::optional<std::vector<TensorShape>> & intmd_shapes,
102 const std::vector<TensorShape> & base_shapes);
109 const std::optional<std::vector<TensorShape>> & row_intmd_shapes,
110 const std::optional<std::vector<TensorShape>> & col_intmd_shapes,
111 const std::vector<TensorShape> & row_base_shapes,
112 const std::vector<TensorShape> & col_base_shapes);
119 const std::optional<std::vector<TensorShape>> & row_intmd_shapes,
120 const std::optional<std::vector<TensorShape>> & col_intmd_shapes,
121 const std::vector<TensorShape> & row_base_shapes,
122 const std::vector<TensorShape> & col_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.
Tensor assemble(const SparseTensorList &, const std::optional< std::vector< TensorShape > > &intmd_shapes, const std::vector< TensorShape > &base_shapes)
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)
SparseTensorList disassemble(const Tensor &, const std::optional< std::vector< TensorShape > > &intmd_shapes, const std::vector< TensorShape > &base_shapes)
Alias for a list of Tensors.
Definition SparseTensorList.h:42