pub struct GraphLayer<'a> {
pub input_norm: &'a [f32],
pub attn: GraphAttn<'a>,
pub post_norm: &'a [f32],
pub ffn: GraphFfn<'a>,
}Expand description
Per-layer weights for the whole-token wgpu graph.
Fields§
§input_norm: &'a [f32]§attn: GraphAttn<'a>§post_norm: &'a [f32]§ffn: GraphFfn<'a>Auto Trait Implementations§
impl<'a> Freeze for GraphLayer<'a>
impl<'a> RefUnwindSafe for GraphLayer<'a>
impl<'a> Send for GraphLayer<'a>
impl<'a> Sync for GraphLayer<'a>
impl<'a> Unpin for GraphLayer<'a>
impl<'a> UnsafeUnpin for GraphLayer<'a>
impl<'a> UnwindSafe for GraphLayer<'a>
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