27#include "neml2/misc/assertions.h"
28#include "neml2/tensors/shape_utils.h"
106 " operands are not broadcastable. The batch shapes are ",
107 tensors.batch_sizes()...,
108 ", and the base shapes are ",
109 tensors.base_sizes()...);
119 " operands are not broadcastable. The batch shapes are ",
120 tensors.batch_sizes()...,
121 ", and the base shapes are ",
122 tensors.base_sizes()...);
132 " operands are not batch-broadcastable. The batch shapes are ",
133 tensors.batch_sizes()...);
143 " operands are not batch-broadcastable. The batch shapes are ",
144 tensors.batch_sizes()...);
154 " operands are not base-broadcastable. The base shapes are ",
155 tensors.base_sizes()...);
165 " operands are not base-broadcastable. The base shapes are ",
166 tensors.base_sizes()...);
bool batch_broadcastable(const T &... tensors)
Definition shape_utils.h:134
bool broadcastable(const T &... tensors)
Definition shape_utils.h:125
bool base_broadcastable(const T &... tensors)
Definition shape_utils.h:141
Definition DiagnosticsInterface.cxx:30
void neml_assert_dbg(bool assertion, Args &&... args)
Definition assertions.h:60
void neml_assert_batch_broadcastable(const T &...)
A helper function to assert that all tensors are batch-broadcastable.
void neml_assert_batch_broadcastable_dbg(const T &...)
A helper function to assert that (in Debug mode) all tensors are batch-broadcastable.
void neml_assert_broadcastable(const T &...)
A helper function to assert that all tensors are broadcastable.
void neml_assert_base_broadcastable_dbg(const T &...)
A helper function to assert that (in Debug mode) all tensors are base-broadcastable.
void neml_assert_broadcastable_dbg(const T &...)
A helper function to assert (in Debug mode) that all tensors are broadcastable.
void neml_assert_base_broadcastable(const T &...)
A helper function to assert that all tensors are base-broadcastable.
void neml_assert(bool assertion, Args &&... args)
Definition assertions.h:47