pub struct ConfidenceHead { /* private fields */ }Expand description
4-layer Pairformer confidence head.
Implementations§
Source§impl ConfidenceHead
impl ConfidenceHead
Sourcepub fn load(
vb: VarBuilder<'_>,
d_single: usize,
d_pair: usize,
num_plddt_bins: usize,
num_pae_bins: usize,
num_pde_bins: usize,
distogram_bins: usize,
) -> Result<Self>
pub fn load( vb: VarBuilder<'_>, d_single: usize, d_pair: usize, num_plddt_bins: usize, num_pae_bins: usize, num_pde_bins: usize, distogram_bins: usize, ) -> Result<Self>
Load the confidence head from a VarBuilder rooted at confidence_head.*.
Sourcepub fn forward(
&self,
single: &Tensor,
pair: &Tensor,
) -> Result<ConfidenceOutput>
pub fn forward( &self, single: &Tensor, pair: &Tensor, ) -> Result<ConfidenceOutput>
Compute confidence predictions from trunk representations.
§Arguments
single—[B, N_tok, d_single]pair—[B, N_tok, N_tok, d_pair]
Auto Trait Implementations§
impl Freeze for ConfidenceHead
impl !RefUnwindSafe for ConfidenceHead
impl Send for ConfidenceHead
impl Sync for ConfidenceHead
impl Unpin for ConfidenceHead
impl UnsafeUnpin for ConfidenceHead
impl !UnwindSafe for ConfidenceHead
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