pub const DYNAMIC: u64 = u64::MAX; // 18_446_744_073_709_551_615u64Expand description
Sentinel value for a dynamic dimension whose concrete size is not known at descriptor-write time.
In the wire encoding this is 0xFFFF_FFFF_FFFF_FFFF (UINT64_MAX).
A reader MUST NOT compute buffer sizes, strides, or element counts for a
tensor containing a dynamic dimension without first resolving it to a
concrete value.
ยงExamples
use hurray_core::{Shape, DYNAMIC};
let shape = Shape::new(vec![1, DYNAMIC, 768]).expect("valid shape");
assert!(shape.has_dynamic());
assert!(shape.element_count().is_none());