#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include "example_utils.hpp"
IC = 72,
IH = 227,
IW = 227;
std::vector<float> src_data(product(src_dims));
std::vector<float> dst_data(product(src_dims));
std::generate(src_data.begin(), src_data.end(), []() {
static int i = 0;
return std::cos(i++ / 10.f);
});
const int shuffle_axis = 1;
const int group_size = 4;
auto dst_mem =
memory({src_dims, dt::f32, tag::abcd},
engine);
write_to_dnnl_memory(src_data.data(), src_mem);
std::unordered_map<int, memory> shuffle_args;
shuffle_prim.execute(engine_stream, shuffle_args);
read_from_dnnl_memory(dst_data.data(), dst_mem);
}
int main(int argc, char **argv) {
return handle_example_errors(
shuffle_example, parse_engine_kind(argc, argv));
}