pub struct BlipForConditionalGeneration { /* private fields */ }
Implementations§
source§impl BlipForConditionalGeneration
impl BlipForConditionalGeneration
pub fn new(cfg: &Config, vb: VarBuilder) -> Result<Self>
pub fn vision_model(&self) -> &VisionModel
pub fn text_decoder(&mut self) -> &mut TextLMHeadModel
pub fn reset_kv_cache(&mut self)
Trait Implementations§
source§impl Clone for BlipForConditionalGeneration
impl Clone for BlipForConditionalGeneration
source§fn clone(&self) -> BlipForConditionalGeneration
fn clone(&self) -> BlipForConditionalGeneration
Returns a copy of the value. Read more
1.0.0 · 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 BlipForConditionalGeneration
impl !RefUnwindSafe for BlipForConditionalGeneration
impl Send for BlipForConditionalGeneration
impl Sync for BlipForConditionalGeneration
impl Unpin for BlipForConditionalGeneration
impl !UnwindSafe for BlipForConditionalGeneration
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