pub struct StaticPretrainedWeightsDescriptor<'a> {
pub name: &'a str,
pub description: &'a str,
pub license: Option<&'a str>,
pub origin: Option<&'a str>,
pub urls: &'a [&'a str],
}Expand description
Static PretrainedWeightsDescriptor provider.
Fields§
§name: &'a strName of the model.
description: &'a strDescription of the model.
license: Option<&'a str>License.
origin: Option<&'a str>Source URL.
urls: &'a [&'a str]URL to download the weights from.
Implementations§
Source§impl<'a> StaticPretrainedWeightsDescriptor<'a>
impl<'a> StaticPretrainedWeightsDescriptor<'a>
Sourcepub fn to_descriptor(&self) -> PretrainedWeightsDescriptor
pub fn to_descriptor(&self) -> PretrainedWeightsDescriptor
Convert to a PretrainedWeightsDescriptor.
Trait Implementations§
Source§impl<'a> Debug for StaticPretrainedWeightsDescriptor<'a>
impl<'a> Debug for StaticPretrainedWeightsDescriptor<'a>
Source§impl From<&StaticPretrainedWeightsDescriptor<'_>> for PretrainedWeightsDescriptor
impl From<&StaticPretrainedWeightsDescriptor<'_>> for PretrainedWeightsDescriptor
Source§fn from(descriptor: &StaticPretrainedWeightsDescriptor<'_>) -> Self
fn from(descriptor: &StaticPretrainedWeightsDescriptor<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for StaticPretrainedWeightsDescriptor<'a>
impl<'a> RefUnwindSafe for StaticPretrainedWeightsDescriptor<'a>
impl<'a> Send for StaticPretrainedWeightsDescriptor<'a>
impl<'a> Sync for StaticPretrainedWeightsDescriptor<'a>
impl<'a> Unpin for StaticPretrainedWeightsDescriptor<'a>
impl<'a> UnsafeUnpin for StaticPretrainedWeightsDescriptor<'a>
impl<'a> UnwindSafe for StaticPretrainedWeightsDescriptor<'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