nncombinator 0.9.0

A library of neural networks that can be written type-safely
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Functions related to cuda memory
use crate::arr::ShieldSlice;

/// Conversion to immutable slices
pub trait AsRawSlice<T> {
    fn as_raw_slice(&self) -> &[T];
}
/// Conversion to mmutable slices
pub trait AsRawMutSlice<'a,T> {
    fn as_raw_mut_slice(&'a mut self) -> ShieldSlice<'a,T>;
}