Skip to main content

Mamba3SingleSsdAutodiffBackendExt

Trait Mamba3SingleSsdAutodiffBackendExt 

Source
pub trait Mamba3SingleSsdAutodiffBackendExt:
    Backend
    + AutodiffBackend
    + Mamba3SingleSsdBackendExt { }
Expand description

Marker for an autodiff-capable backend that also implements the SSD extension trait (so the custom memory-efficient backward is available).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<B> Mamba3SingleSsdAutodiffBackendExt for Autodiff<B>
where B: Backend + Mamba3SingleSsdBackendExt + BackendTypes<FloatTensorPrimitive = DispatchTensor>,

Available on crate feature autodiff only.

Any autodiff-compatible backend whose inner backend implements the ext trait satisfies the marker. The actual custom backward lives in super::backward (a custom impl of the ext trait for Autodiff<B>).

Implementors§