#include "tensorstore/spec.h" DimensionIndex tensorstore::Spec::rank() const; Returns the rank of the TensorStore, or dynamic_rank if unknown.