[−][src]Enum onednn_sys::dnnl_query_t
Primitive descriptor query specification
For generic function dnnl_primitive_desc_query(), the type of result must agree with the queried argument. The correspondence table:
Query kind | Type of query result |
---|---|
#dnnl_query_engine | #dnnl_engine_t * |
#dnnl_query_scratchpad_engine | #dnnl_engine_t * |
#dnnl_query_primitive_kind | #dnnl_primitive_kind_t * |
dnnl_query_*_s32 | int * |
dnnl_query_*_s64 | #dnnl_dim_t * (same as int64_t *) |
dnnl_query_*_f64 | double * |
dnnl_query_*_str | const char ** |
#dnnl_query_op_d | #const_dnnl_op_desc_t * |
dnnl_query_*_md | const #dnnl_memory_desc_t ** |
dnnl_query_*_<op>_d | const dnnl_<op>_desc_t ** |
dnnl_query_*_pd | #const_dnnl_primitive_desc_t * |
@note Rule of thumb: all opaque types and structures are returned by reference. All numbers are returned by value.
@warning All returned references point to constant objects and are valid only during the lifetime of the queried primitive descriptor. Returned objects must not be destroyed by the user. If you need to keep the object longer than the lifetime of the queried primitive descriptor, use dnnl_primitive_desc_clone() to make a copy.
Variants (Non-exhaustive)
< no query
< execution engine
< primitive kind
< number of inputs expected
< number of outputs expected
< runtime estimation (seconds)
< memory consumption -- extra
< scratchpad engine -- engine to be used
< implementation name
< source engine
< destination engine
< propagation kind
< stub
< op descriptor
< convolution descriptor
< deconvolution descriptor
< shuffle descriptor
< eltwise descriptor
< softmax descriptor
< pooling descriptor
< lrn descriptor
< batch normalization descriptor
< layer normalization descriptor
< inner product descriptor
< rnn descriptor
< GEMM descriptor (internal)
< binary descriptor
< logsoftmax descriptor
< matrix multiplication (matmul) descriptor
< resampling descriptor
< stub
< source memory desc
< source gradient memory desc
< weights memory descriptor desc
< weights grad. memory desc
< destination memory desc
< destination grad. memory desc
< workspace memory desc
< scratchpad memory desc
< memory desc of an execute argument
Trait Implementations
impl Clone for dnnl_query_t
[src]
fn clone(&self) -> dnnl_query_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for dnnl_query_t
[src]
impl Debug for dnnl_query_t
[src]
impl Eq for dnnl_query_t
[src]
impl Hash for dnnl_query_t
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<dnnl_query_t> for dnnl_query_t
[src]
fn eq(&self, other: &dnnl_query_t) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for dnnl_query_t
[src]
impl StructuralPartialEq for dnnl_query_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for dnnl_query_t
impl Send for dnnl_query_t
impl Sync for dnnl_query_t
impl Unpin for dnnl_query_t
impl UnwindSafe for dnnl_query_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,