Intel® oneAPI Deep Neural Network Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
enum dnnl_query_t
Overview
Primitive descriptor query specification. More…
#include <dnnl_types.h>
enum dnnl_query_t
{
    dnnl_query_undef                  = 0,
    dnnl_query_engine,
    dnnl_query_primitive_kind,
    dnnl_query_num_of_inputs_s32,
    dnnl_query_num_of_outputs_s32,
    dnnl_query_time_estimate_f64,
    dnnl_query_memory_consumption_s64,
    dnnl_query_scratchpad_engine,
    dnnl_query_impl_info_str,
    dnnl_query_reorder_src_engine,
    dnnl_query_reorder_dst_engine,
    dnnl_query_prop_kind,
    dnnl_query_cache_blob_id_size_s64,
    dnnl_query_cache_blob_id,
    dnnl_query_strides,
    dnnl_query_dilations,
    dnnl_query_padding_l,
    dnnl_query_padding_r,
    dnnl_query_epsilon_f32,
    dnnl_query_flags,
    dnnl_query_alg_kind,
    dnnl_query_alpha_f32,
    dnnl_query_beta_f32,
    dnnl_query_axis_s32,
    dnnl_query_local_size_s64,
    dnnl_query_k_f32,
    dnnl_query_p_f32,
    dnnl_query_factors,
    dnnl_query_cell_kind,
    dnnl_query_direction,
    dnnl_query_activation_kind,
    dnnl_query_kernel,
    dnnl_query_group_size_s64,
    dnnl_query_some_md                = 128,
    dnnl_query_src_md,
    dnnl_query_diff_src_md,
    dnnl_query_weights_md,
    dnnl_query_diff_weights_md,
    dnnl_query_dst_md,
    dnnl_query_diff_dst_md,
    dnnl_query_workspace_md,
    dnnl_query_scratchpad_md,
    dnnl_query_exec_arg_md            = 255,
    dnnl_query_ndims_s32,
    dnnl_query_dims,
    dnnl_query_data_type,
    dnnl_query_submemory_offset_s64,
    dnnl_query_padded_dims,
    dnnl_query_padded_offsets,
    dnnl_query_format_kind,
    dnnl_query_inner_nblks_s32,
    dnnl_query_inner_blks,
    dnnl_query_inner_idxs,
    dnnl_query_max                    = 0x7fff,
};Detailed Documentation
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_query_*_s32 | int * | 
| dnnl_query_*_s64 | dnnl_dim_t * (same as int64_t ) | 
| dnnl_query_*_f32 | float * | 
| dnnl_query_*_f64 | double * | 
| dnnl_query_*_str | const char ** | 
| dnnl_query_*_md | |
| dnnl_query_*_pd | |
| dnnl_query_cache_blob_id | const uint8_t ** | 
| dnnl_query_strides | const dnnl_dims_t ** | 
| dnnl_query_dilations | const dnnl_dims_t ** | 
| dnnl_query_padding_l | const dnnl_dims_t ** | 
| dnnl_query_padding_r | const dnnl_dims_t ** | 
| dnnl_query_flags | unsigned * | 
| dnnl_query_alg_kind | |
| dnnl_query_factors | const float ** | 
| dnnl_query_cell_kind | |
| dnnl_query_direction | |
| dnnl_query_activation_kind | |
| dnnl_query_kernel | const dnnl_dims_t ** | 
| dnnl_query_dims | const dnnl_dims_t ** | 
| dnnl_query_data_type | |
| dnnl_query_padded_dims | const dnnl_dims_t ** | 
| dnnl_query_padded_offsets | const dnnl_dims_t ** | 
| dnnl_query_format_kind | |
| dnnl_query_inner_blks | const dnnl_dims_t ** | 
| dnnl_query_inner_idxs | const dnnl_dims_t ** | 
| dnnl_query_sparse_encoding | #dnnl_sparse_encoding_t * | 
Enum Values
dnnl_query_undefno query
dnnl_query_engineexecution engine
dnnl_query_primitive_kindprimitive kind
dnnl_query_num_of_inputs_s32number of inputs expected
dnnl_query_num_of_outputs_s32number of outputs expected
dnnl_query_time_estimate_f64runtime estimation (seconds)
dnnl_query_memory_consumption_s64memory consumption extra
dnnl_query_scratchpad_engine(scratch) memory, additional to all inputs and outputs memory (bytes)
scratchpad engine engine to be used
dnnl_query_impl_info_strfor creating scratchpad memory
implementation name
dnnl_query_reorder_src_enginesource engine
dnnl_query_reorder_dst_enginedestination engine
dnnl_query_prop_kindpropagation kind
dnnl_query_cache_blob_id_size_s64size of cache blob ID in bytes
dnnl_query_cache_blob_idcache blob ID (pointer to array)
dnnl_query_stridesstrides
dnnl_query_dilationsdilations
dnnl_query_padding_lleft padding
dnnl_query_padding_rright padding
dnnl_query_epsilon_f32epsilon
dnnl_query_flagsflags
dnnl_query_alg_kindalgorithm kind
dnnl_query_alpha_f32alpha
dnnl_query_beta_f32beta
dnnl_query_axis_s32axis
dnnl_query_local_size_s64LRN parameter local size.
dnnl_query_k_f32LRN parameter K.
dnnl_query_p_f32Reduction parameter P.
dnnl_query_factorsResampling parameter factors.
dnnl_query_cell_kindRNN parameter cell kind.
dnnl_query_directionRNN parameter direction.
dnnl_query_activation_kindRNN parameter activation kind.
dnnl_query_kernelPooling parameter kernel.
dnnl_query_group_size_s64Shuffle parameter group size.
dnnl_query_some_mdstub
dnnl_query_src_mdsource memory desc
dnnl_query_diff_src_mdsource gradient memory desc
dnnl_query_weights_mdweights memory descriptor desc
dnnl_query_diff_weights_mdweights grad. memory desc
dnnl_query_dst_mddestination memory desc
dnnl_query_diff_dst_mddestination grad. memory desc
dnnl_query_workspace_mdworkspace memory desc
dnnl_query_scratchpad_mdscratchpad memory desc
dnnl_query_exec_arg_mdmemory desc of an execute argument
dnnl_query_ndims_s32number of dimensions
dnnl_query_dimsvector of dimensions
dnnl_query_data_typedata type
dnnl_query_submemory_offset_s64submemory offset
dnnl_query_padded_dimsvector of padded dimensions
dnnl_query_padded_offsetsvector of padded offsets
dnnl_query_format_kindformat kind
dnnl_query_inner_nblks_s32number of innermost blocks
dnnl_query_inner_blksvector of sizes of the innermost blocks
dnnl_query_inner_idxsvector of logical indices of the blocks