27#include "neml2/misc/types.h"
28#include "neml2/tensors/tensors_fwd.h"
32struct TraceableTensorShape;
34#define DECLARE_SUM_TO_SIZE(T) \
35 T dynamic_sum_to_size(const T & a, const TraceableTensorShape & shape); \
36 T intmd_sum_to_size(const T & a, TensorShapeRef shape);
37FOR_ALL_TENSORBASE(DECLARE_SUM_TO_SIZE);
38#undef DECLARE_SUM_TO_SIZE
Definition DiagnosticsInterface.cxx:30
Tensor base_sum_to_size(const Tensor &a, TensorShapeRef shape)
Definition sum_to_size.cxx:86
c10::ArrayRef< Size > TensorShapeRef
Definition types.h:67