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