onednnl 0.0.1

high-level bindings to oneDNN Deep Learning library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use {
    super::{descriptor::PrimitiveDescriptor, Direction, PropType},
    crate::{engine::Engine, error::DnnlError},
    std::sync::Arc,
};

pub trait PrimitiveConfig<'a, D: Direction, P: PropType<D>>: Sized {
    fn create_primitive_desc(
        self,
        engine: Arc<Engine>,
    ) -> Result<PrimitiveDescriptor<'a, D, P, Self>, DnnlError>;
}