pub struct Variable {
pub name: String,
pub min: i64,
pub max: i64,
}Expand description
A variable in the kernel (for symbolic shapes/strides).
Variables represent symbolic values that are bound at kernel execution time. Examples:
- Shape dimensions that vary per input
- Stride values computed from shapes
- Loop bounds determined by input sizes
Fields§
§name: StringVariable name (must be unique within the kernel)
min: i64Minimum value (for range validation)
max: i64Maximum value (for range validation)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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