ie_primitive_info.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header file for the PrimitiveInfo struct
7  *
8  * @file ie_primitive_info.hpp
9  */
10 
11 #pragma once
12 
13 #include <map>
14 #include <memory>
15 #include <string>
16 #include <vector>
17 
18 #include "ie_tensor_info.hpp"
19 
20 namespace InferenceEngine {
21 
22 /**
23  * @deprecated Use ExecutableNetwork::GetExecGraphInfo to get information about an internal graph.
24  * @brief Structure with information about Primitive
25  */
26 struct INFERENCE_ENGINE_DEPRECATED("Use ExecutableNetwork::GetExecGraphInfo to get information about an internal graph") PrimitiveInfo {
27  /**
28  * @brief A shared pointer to PrimitiveInfo object
29  */
30  IE_SUPPRESS_DEPRECATED_START
31  using Ptr = std::shared_ptr<PrimitiveInfo>;
32  IE_SUPPRESS_DEPRECATED_END
33 
34  /**
35  * @brief Some internal id, could be used as a name
36  */
37  std::string sId;
38 
39  /**
40  * @brief Implementation type of this kernel
41  */
42  std::string sType;
43 
44  /**
45  * @brief Mainly the allocation of the output tensor
46  */
48 
49  IE_SUPPRESS_DEPRECATED_START
50 
51  /**
52  * @brief Vector of TensorInfo objects that are related to input tensors
53  */
54  std::vector<TensorInfo::Ptr> inputs;
55 
56  /**
57  * @brief Vector of TensorInfo object that are related to outputs tensors
58  */
59  std::vector<TensorInfo::Ptr> outputs;
60 
61  IE_SUPPRESS_DEPRECATED_END
62 
63  /**
64  * @brief Any other important textual information user might find interesting about this kernel
65  */
66  std::map<std::string, std::string> extraInfo;
67 };
68 
69 } // namespace InferenceEngine
std::string sId
Some internal id, could be used as a name.
Definition: ie_primitive_info.hpp:37
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
A header file for the TensorInfo structure.
std::shared_ptr< PrimitiveInfo > Ptr
A shared pointer to PrimitiveInfo object.
Definition: ie_primitive_info.hpp:31
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:30
std::string sType
Implementation type of this kernel.
Definition: ie_primitive_info.hpp:42
std::map< std::string, std::string > extraInfo
Any other important textual information user might find interesting about this kernel.
Definition: ie_primitive_info.hpp:66
std::vector< TensorInfo::Ptr > inputs
Vector of TensorInfo objects that are related to input tensors.
Definition: ie_primitive_info.hpp:54
std::vector< TensorInfo::Ptr > outputs
Vector of TensorInfo object that are related to outputs tensors.
Definition: ie_primitive_info.hpp:59
int iPreAllocatedMemory
Mainly the allocation of the output tensor.
Definition: ie_primitive_info.hpp:47
Structure with information about Primitive.
Definition: ie_primitive_info.hpp:26