Struct candle_transformers::models::clip::text_model::ClipTextTransformer
source · pub struct ClipTextTransformer { /* private fields */ }
Expand description
A CLIP transformer based model.
Implementations§
source§impl ClipTextTransformer
impl ClipTextTransformer
pub fn new(vs: VarBuilder<'_>, c: &ClipTextConfig) -> Result<Self>
pub fn forward_with_mask( &self, input_ids: &Tensor, mask_after: usize ) -> Result<Tensor>
Trait Implementations§
source§impl Clone for ClipTextTransformer
impl Clone for ClipTextTransformer
source§fn clone(&self) -> ClipTextTransformer
fn clone(&self) -> ClipTextTransformer
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 moresource§impl Debug for ClipTextTransformer
impl Debug for ClipTextTransformer
Auto Trait Implementations§
impl Freeze for ClipTextTransformer
impl !RefUnwindSafe for ClipTextTransformer
impl Send for ClipTextTransformer
impl Sync for ClipTextTransformer
impl Unpin for ClipTextTransformer
impl !UnwindSafe for ClipTextTransformer
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