1 #include "oneapi/dnnl/dnnl.hpp"
2 #include "intel_utils.h"
13 using tag = dnnl::memory::format_tag;
14 using dt = dnnl::memory::data_type;
39 std::vector<dnnl::primitive> &net,
40 std::vector<std::unordered_map<int, dnnl::memory>> &net_args,
71 Conv2D(
int batch_size,
int patch_length,
72 int n_kernels,
int kernel_size,
73 int stride_length,
int padding_length,
76 std::vector<dnnl::primitive> &net,
77 std::vector<std::unordered_map<int, dnnl::memory>> &net_args,
90 dnnl::memory arg_src, arg_dst, arg_workspace;
91 dnnl::pooling_v2_forward::primitive_desc *pooling_fwd_pd;
104 std::vector<dnnl::primitive> &net,
105 std::vector<std::unordered_map<int, dnnl::memory>> &net_args,
Conv2D allows to create a forward convolution primitive.
Definition: layers_fwd.h:50
dnnl::memory arg_dst
Destination memory handler.
Definition: layers_fwd.h:53
dnnl::memory arg_weights
Weights memory handler.
Definition: layers_fwd.h:55
dnnl::memory arg_src
Source memory handler.
Definition: layers_fwd.h:52
Conv2D(int batch_size, int patch_length, int n_kernels, int kernel_size, int stride_length, int padding_length, int dilation, dnnl::memory input, std::vector< dnnl::primitive > &net, std::vector< std::unordered_map< int, dnnl::memory >> &net_args, dnnl::engine eng)
Construct a new Conv 2 D object.
dnnl::memory arg_bias
Bias memory handler.
Definition: layers_fwd.h:54
Dense allows to create a fully connected layer forward primitive.
Definition: layers_fwd.h:22
dnnl::memory arg_weights
Weights memory handler.
Definition: layers_fwd.h:27
dnnl::memory arg_src
Source memory handler.
Definition: layers_fwd.h:24
Dense(int fc_output_size, dnnl::memory input, std::vector< dnnl::primitive > &net, std::vector< std::unordered_map< int, dnnl::memory >> &net_args, dnnl::engine eng)
Construct a new Dense object.
dnnl::memory arg_dst
Destination memory handler.
Definition: layers_fwd.h:25
dnnl::memory arg_bias
Bias memory handler.
Definition: layers_fwd.h:26
Primitive which provides max pooling.
Definition: layers_fwd.h:88
MaxPool2D(int kernel_size, int stride_length, dnnl::memory input, std::vector< dnnl::primitive > &net, std::vector< std::unordered_map< int, dnnl::memory >> &net_args, dnnl::engine eng)
Construct a new Max Pool 2 D object.