16 #include <../api/CPP/cldnn_defs.h> 17 #include <../api/CPP/engine.hpp> 18 #include <../api/CPP/memory.hpp> 19 #include <../api/CPP/tensor.hpp> 20 #include <../api/CPP/input_layout.hpp> 21 #include <../api/CPP/data.hpp> 32 using namespace cldnn;
37 std::cout << std::endl <<
"-- Chapter 1 --" << std::endl;
42 const bool profiling =
true;
58 tensor tensor2(spatial(32, 32), batch(4), feature(1));
59 tensor tensor3(spatial(32, 32), batch(4));
61 std::cout <<
"Is tensor1 == tensor2 == tensor3?:" <<
62 (((tensor1 == tensor2) && (tensor2 == tensor3)) ?
"yes" :
"no") << std::endl;
63 std::cout <<
"print tensor:" << tensor1 << std::endl;
N-dimensional vector. Mostly used to represent memory size.
Provides input data to topology.
data_types
Possible data types could be stored in memory.
static memory allocate(const engine &engine, const layout &layout)
Allocate memory on engine using specified layout.
Represents clDNN engine object.
Represents buffer with particular layout.