ie_primitive_info.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header file for the PrimitiveInfo struct
7  * @file ie_primitive_info.hpp
8  */
9 
10 #pragma once
11 
12 #include "ie_tensor_info.hpp"
13 #include <string>
14 #include <vector>
15 #include <memory>
16 #include <map>
17 
18 namespace InferenceEngine {
19 
20 struct PrimitiveInfo {
21  using Ptr = std::shared_ptr<PrimitiveInfo>;
22 
23  std::string sId; // some internal id, could be used as a name
24  std::string sType; // implementation type of this kernel
25  int iPreAllocatedMemory; // mainly the allocation of the output tensor
26 
27  std::vector<TensorInfo::Ptr> inputs;
28  std::vector<TensorInfo::Ptr> outputs;
29 
30  std::map<std::string, std::string> extraInfo; // any other important textual information user might find interesting about this kernel
31 };
32 
33 } // namespace InferenceEngine
Definition: ie_argmax_layer.hpp:11
A header file for the TensorInfo structure.
Definition: ie_primitive_info.hpp:20