pub struct ESM3Output {
pub sequence_logits: Option<Tensor>,
pub structure_logits: Option<Tensor>,
pub secondary_structure_logits: Option<Tensor>,
pub sasa_logits: Option<Tensor>,
pub function_logits: Option<Tensor>,
pub residue_logits: Option<Tensor>,
pub embeddings: Option<Tensor>,
}Expand description
Output of an ESM3 forward pass.
Fields§
§sequence_logits: Option<Tensor>(B, L, d_sequence_vocab) — per-residue amino-acid logits.
structure_logits: Option<Tensor>(B, L, d_structure_vocab) — per-residue structure-token logits.
secondary_structure_logits: Option<Tensor>(B, L, d_ss8_vocab) — secondary-structure logits.
sasa_logits: Option<Tensor>(B, L, d_sasa_vocab) — SASA-bin logits.
function_logits: Option<Tensor>(B, L, n_function_tracks, d_function_vocab) — function annotation logits.
residue_logits: Option<Tensor>(B, L, d_residue_vocab) — InterPro residue-annotation logits.
embeddings: Option<Tensor>(B, L, d_model) — final hidden states (when requested).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ESM3Output
impl !RefUnwindSafe for ESM3Output
impl Send for ESM3Output
impl Sync for ESM3Output
impl Unpin for ESM3Output
impl UnsafeUnpin for ESM3Output
impl !UnwindSafe for ESM3Output
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