pub struct ViTBlock {
pub norm1_w: DevicePtr,
pub norm1_b: DevicePtr,
pub qkv_w: DevicePtr,
pub qkv_b: DevicePtr,
pub proj_w: DevicePtr,
pub proj_b: DevicePtr,
pub norm2_w: DevicePtr,
pub norm2_b: DevicePtr,
pub fc1_w: DevicePtr,
pub fc1_b: DevicePtr,
pub fc2_w: DevicePtr,
pub fc2_b: DevicePtr,
}Fields§
§norm1_w: DevicePtr§norm1_b: DevicePtr§qkv_w: DevicePtr§qkv_b: DevicePtr§proj_w: DevicePtr§proj_b: DevicePtr§norm2_w: DevicePtr§norm2_b: DevicePtr§fc1_w: DevicePtr§fc1_b: DevicePtr§fc2_w: DevicePtr§fc2_b: DevicePtrAuto Trait Implementations§
impl Freeze for ViTBlock
impl RefUnwindSafe for ViTBlock
impl Send for ViTBlock
impl Sync for ViTBlock
impl Unpin for ViTBlock
impl UnwindSafe for ViTBlock
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