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 /**
21 * @brief Structure with information about Primitive
22 */
23 struct PrimitiveInfo {
24  /**
25  * @brief A shared pointer to PrimitiveInfo object
26  */
27  using Ptr = std::shared_ptr<PrimitiveInfo>;
28 
29  /**
30  * @brief Some internal id, could be used as a name
31  */
32  std::string sId;
33 
34  /**
35  * @brief Implementation type of this kernel
36  */
37  std::string sType;
38 
39  /**
40  * @brief Mainly the allocation of the output tensor
41  */
43 
44  /**
45  * @brief Vector of TensorInfo objects that are related to input tensors
46  */
47  std::vector<TensorInfo::Ptr> inputs;
48 
49  /**
50  * @brief Vector of TensorInfo object that are related to outputs tensors
51  */
52  std::vector<TensorInfo::Ptr> outputs;
53 
54  /**
55  * @brief Any other important textual information user might find interesting about this kernel
56  */
57  std::map<std::string, std::string> extraInfo;
58 };
59 
60 } // namespace InferenceEngine
std::string sId
Some internal id, could be used as a name.
Definition: ie_primitive_info.hpp:32
Definition: ie_argmax_layer.hpp:11
A header file for the TensorInfo structure.
std::shared_ptr< PrimitiveInfo > Ptr
A shared pointer to PrimitiveInfo object.
Definition: ie_primitive_info.hpp:27
std::string sType
Implementation type of this kernel.
Definition: ie_primitive_info.hpp:37
std::map< std::string, std::string > extraInfo
Any other important textual information user might find interesting about this kernel.
Definition: ie_primitive_info.hpp:57
std::vector< TensorInfo::Ptr > inputs
Vector of TensorInfo objects that are related to input tensors.
Definition: ie_primitive_info.hpp:47
std::vector< TensorInfo::Ptr > outputs
Vector of TensorInfo object that are related to outputs tensors.
Definition: ie_primitive_info.hpp:52
int iPreAllocatedMemory
Mainly the allocation of the output tensor.
Definition: ie_primitive_info.hpp:42
Structure with information about Primitive.
Definition: ie_primitive_info.hpp:23