Introduction
In this chapter we will explain how to create and execute network.
#include <../api/CPP/cldnn_defs.h>
#include <../api/CPP/engine.hpp>
#include <../api/CPP/input_layout.hpp>
#include <../api/CPP/memory.hpp>
#include <../api/CPP/data.hpp>
#include <../api/CPP/topology.hpp>
#include <../api/CPP/network.hpp>
#include <iostream>
#include "helper_functions.h"
{
std::cout << std::endl << "-- Chapter 3 --" << std::endl;
set_values(input_mem, { -3.0f, -2.0f, 2.5f });
{
std::cout <<
network.get_primitive_info(it.first) << std::endl;
auto mem_pointer = it.second.get_memory().pointer<float>();
for (auto i : mem_pointer)
{
std::cout << i << " ";
}
std::cout << std::endl;
}
}