pub struct FoldingTrunk { /* private fields */ }Expand description
24-layer Pairformer trunk that jointly refines single and pair representations.
- Single repr:
[B, N, d_single=384] - Pair repr:
[B, N, N, d_pair=256]
Implementations§
Source§impl FoldingTrunk
impl FoldingTrunk
Sourcepub fn load(
vb: VarBuilder<'_>,
n_layers: usize,
d_single: usize,
d_pair: usize,
n_heads: usize,
) -> Result<Self>
pub fn load( vb: VarBuilder<'_>, n_layers: usize, d_single: usize, d_pair: usize, n_heads: usize, ) -> Result<Self>
Load the folding trunk from a VarBuilder rooted at folding_trunk.*.
n_heads comes from ESMFold2Config::trunk_n_heads (8 for ESMFold2-Fast).
Auto Trait Implementations§
impl Freeze for FoldingTrunk
impl !RefUnwindSafe for FoldingTrunk
impl Send for FoldingTrunk
impl Sync for FoldingTrunk
impl Unpin for FoldingTrunk
impl UnsafeUnpin for FoldingTrunk
impl !UnwindSafe for FoldingTrunk
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