pub struct StructureEncoderRunner { /* private fields */ }Expand description
Wraps the ESM3 structure token encoder for converting backbone coordinates to tokens.
Uses a separate checkpoint (esm3_structure_encoder_v0.pth) from the main model.
Implementations§
Source§impl StructureEncoderRunner
impl StructureEncoderRunner
Sourcepub fn from_pretrained(device: Device) -> Result<Self>
pub fn from_pretrained(device: Device) -> Result<Self>
Download and load the structure encoder from HuggingFace.
Auto Trait Implementations§
impl Freeze for StructureEncoderRunner
impl !RefUnwindSafe for StructureEncoderRunner
impl !Send for StructureEncoderRunner
impl !Sync for StructureEncoderRunner
impl Unpin for StructureEncoderRunner
impl UnsafeUnpin for StructureEncoderRunner
impl !UnwindSafe for StructureEncoderRunner
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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more