Struct grpc_vision_svc::image_captioning::model_loader::Model
source · pub struct Model { /* private fields */ }
Expand description
Model
is a struct representing a downloaded model.
It contains the paths to the model and tokenizer files.
These paths can be used to load the model and tokenizer in your ML library of choice.
Implementations§
source§impl Model
impl Model
sourcepub fn model_path(&self) -> &PathBuf
pub fn model_path(&self) -> &PathBuf
Returns a reference to the path of the model file.
sourcepub fn tokenizer_path(&self) -> &PathBuf
pub fn tokenizer_path(&self) -> &PathBuf
Returns a reference to the path of the tokenizer file.
sourcepub fn into_inner(self) -> (PathBuf, PathBuf)
pub fn into_inner(self) -> (PathBuf, PathBuf)
Consumes the Model
instance and returns the inner paths as a tuple.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request