pub struct ScalarBinding {
pub name: String,
pub elem_type: i32,
}Expand description
A scalar the host supplies at dispatch time.
Either a whole uniform (var<uniform> input_scale: f32) or one member of a
uniform params struct (params.a). It is deliberately not a constant:
the value is written per dispatch, so it lowers to a rank-0 graph input,
not to an initializer folded into the graph. axpy’s own comment is
explicit that a changes every diffusion step.
Fields§
§name: StringName to give the rank-0 graph input.
elem_type: i32ONNX element data type (see data_type).
Trait Implementations§
Source§impl Clone for ScalarBinding
impl Clone for ScalarBinding
Source§fn clone(&self) -> ScalarBinding
fn clone(&self) -> ScalarBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarBinding
impl Debug for ScalarBinding
Auto Trait Implementations§
impl Freeze for ScalarBinding
impl RefUnwindSafe for ScalarBinding
impl Send for ScalarBinding
impl Sync for ScalarBinding
impl Unpin for ScalarBinding
impl UnsafeUnpin for ScalarBinding
impl UnwindSafe for ScalarBinding
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