27#include "neml2/tensors/TraceableSize.h"
Definition DiagnosticsInterface.h:31
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:72
bool operator==(const AxisLayout &, const AxisLayout &)
comparison operator
c10::SmallVector< T, N > SmallVector
Definition types.h:61
auto operator!=(const T1 &a, const T2 &b)
Definition VariableBase.h:329
at::Tensor ATensor
Definition types.h:42
c10::ArrayRef< Size > TensorShapeRef
Definition types.h:73
Traceable size.
Definition TraceableSize.h:42
Traceable tensor shape.
Definition TraceableTensorShape.h:38
TensorShape concrete() const
TraceableTensorShape(Size shape)
TraceableTensorShape(const TensorShape &shape)
TraceableTensorShape slice(std::size_t N) const
Chop-off the first N elements of the shape, semantically the same as ArrayRef::slice,...
TraceableTensorShape(TensorShapeRef shape)
TraceableTensorShape(const ATensor &shape)
int64_t Size
Definition TraceableTensorShape.h:40
ATensor as_tensor() const
TraceableTensorShape slice(std::size_t N, std::size_t M) const
Slice the shape.