pub struct GeometricReasoningOriginalImpl { /* private fields */ }Implementations§
Source§impl GeometricReasoningOriginalImpl
impl GeometricReasoningOriginalImpl
pub fn load(vb: VarBuilder<'_>, config: &ESMCConfig) -> Result<Self>
Sourcepub fn forward(
&self,
s: &Tensor,
affine: &Affine3D,
affine_mask: &Tensor,
sequence_id: Option<&Tensor>,
chain_id: Option<&Tensor>,
) -> Result<Tensor>
pub fn forward( &self, s: &Tensor, affine: &Affine3D, affine_mask: &Tensor, sequence_id: Option<&Tensor>, chain_id: Option<&Tensor>, ) -> Result<Tensor>
Geometric attention forward pass.
s:(B, L, d_model)hidden states.affine: per-residue local frames(B, L, 3, 3)rot +(B, L, 3)trans.affine_mask:(B, L)u8 — 1 where the frame is valid, 0 for frameless positions.sequence_id: optional(B, L)int — positions with the same ID form one protein.chain_id: optional(B, L)int — positions in the same chain.
Returns (B, L, d_model).
Auto Trait Implementations§
impl Freeze for GeometricReasoningOriginalImpl
impl !RefUnwindSafe for GeometricReasoningOriginalImpl
impl Send for GeometricReasoningOriginalImpl
impl Sync for GeometricReasoningOriginalImpl
impl Unpin for GeometricReasoningOriginalImpl
impl UnsafeUnpin for GeometricReasoningOriginalImpl
impl !UnwindSafe for GeometricReasoningOriginalImpl
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