27#include "neml2/tensors/TraceableSize.h"
Definition DiagnosticsInterface.h:31
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:72
c10::SmallVector< T, N > SmallVector
Definition types.h:61
at::Tensor ATensor
Definition types.h:42
bool operator==(const LabeledAxis &a, const LabeledAxis &b)
bool operator!=(const LabeledAxis &a, const LabeledAxis &b)
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.