pub struct GraphMoeLatent<'a> {
pub down: GraphW<'a>,
pub up: GraphW<'a>,
pub dim: usize,
}Expand description
Hy4-flash’s latent MoE: the routed experts read down · x and their
mixture goes back through up; the router and the shared expert read x.
Fields§
§down: GraphW<'a>[dim, hidden], [hidden, dim].
up: GraphW<'a>§dim: usizeAuto Trait Implementations§
impl<'a> Forget for GraphMoeLatent<'a>
impl<'a> Freeze for GraphMoeLatent<'a>
impl<'a> Move for GraphMoeLatent<'a>
impl<'a> RefUnwindSafe for GraphMoeLatent<'a>
impl<'a> Send for GraphMoeLatent<'a>
impl<'a> Sync for GraphMoeLatent<'a>
impl<'a> Unpin for GraphMoeLatent<'a>
impl<'a> UnsafeUnpin for GraphMoeLatent<'a>
impl<'a> UnwindSafe for GraphMoeLatent<'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