Struct nncombinator::device::CublasContext
source · [−]pub struct CublasContext { /* private fields */ }Expand description
cublas context
Implementations
sourceimpl CublasContext
impl CublasContext
sourcepub fn new(pointer_mode: PointerMode) -> Result<CublasContext, Error>
pub fn new(pointer_mode: PointerMode) -> Result<CublasContext, Error>
sourcepub fn id_c(&self) -> &cublasHandle_t
pub fn id_c(&self) -> &cublasHandle_t
Returns a reference to the raw handle (pointer) of the cublas context
sourcepub fn pointer_mode(&self) -> Result<PointerMode, Error>
pub fn pointer_mode(&self) -> Result<PointerMode, Error>
Trait Implementations
sourceimpl Clone for CublasContext
impl Clone for CublasContext
Auto Trait Implementations
impl RefUnwindSafe for CublasContext
impl !Send for CublasContext
impl !Sync for CublasContext
impl Unpin for CublasContext
impl UnwindSafe for CublasContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more