pub struct ConstantTensor {
pub name: String,
pub data: Vec<u8>,
}Expand description
Contents for one tensor, supplied by the caller rather than by the kernel.
Fields§
§name: StringThe tensor’s name, as the WGSL binding spells it.
data: Vec<u8>Raw little-endian contents, in the tensor’s own element type.
Trait Implementations§
Source§impl Clone for ConstantTensor
impl Clone for ConstantTensor
Source§fn clone(&self) -> ConstantTensor
fn clone(&self) -> ConstantTensor
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 moreAuto Trait Implementations§
impl Freeze for ConstantTensor
impl RefUnwindSafe for ConstantTensor
impl Send for ConstantTensor
impl Sync for ConstantTensor
impl Unpin for ConstantTensor
impl UnsafeUnpin for ConstantTensor
impl UnwindSafe for ConstantTensor
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