pub struct ShapeInference;Expand description
Shape inference pass.
Analyzes the module’s global variables and uniform params to infer tensor shapes. Shapes are inferred from:
- Array types (runtime-sized → dynamic dim)
- Uniform struct member names (convention: N, M, K, C, H, W, etc.)
- Workgroup size hints
This pass does not modify the module; it only produces a ShapeMap
stored in module metadata (currently as a side-channel).
Trait Implementations§
Source§impl Debug for ShapeInference
impl Debug for ShapeInference
Auto Trait Implementations§
impl Freeze for ShapeInference
impl RefUnwindSafe for ShapeInference
impl Send for ShapeInference
impl Sync for ShapeInference
impl Unpin for ShapeInference
impl UnsafeUnpin for ShapeInference
impl UnwindSafe for ShapeInference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more