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  * This structure will be removed in 2021.1 release.
25  * @brief Structure with information about Primitive
26  */
27 struct INFERENCE_ENGINE_DEPRECATED("Use ExecutableNetwork::GetExecGraphInfo to get information about an internal graph") PrimitiveInfo {
28  /**
29  * @brief A shared pointer to PrimitiveInfo object
30  */
31  IE_SUPPRESS_DEPRECATED_START
32  using Ptr = std::shared_ptr<PrimitiveInfo>;
33  IE_SUPPRESS_DEPRECATED_END
34 
35  /**
36  * @brief Some internal id, could be used as a name
37  */
38  std::string sId;
39 
40  /**
41  * @brief Implementation type of this kernel
42  */
43  std::string sType;
44 
45  /**
46  * @brief Mainly the allocation of the output tensor
47  */
49 
50  IE_SUPPRESS_DEPRECATED_START
51 
52  /**
53  * @brief Vector of TensorInfo objects that are related to input tensors
54  */
55  std::vector<TensorInfo::Ptr> inputs;
56 
57  /**
58  * @brief Vector of TensorInfo object that are related to outputs tensors
59  */
60  std::vector<TensorInfo::Ptr> outputs;
61 
62  IE_SUPPRESS_DEPRECATED_END
63 
64  /**
65  * @brief Any other important textual information user might find interesting about this kernel
66  */
67  std::map<std::string, std::string> extraInfo;
68 };
69 
70 } // namespace InferenceEngine
std::string sId
Some internal id, could be used as a name.
Definition: ie_primitive_info.hpp:38
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:32
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:30
std::string sType
Implementation type of this kernel.
Definition: ie_primitive_info.hpp:43
std::map< std::string, std::string > extraInfo
Any other important textual information user might find interesting about this kernel.
Definition: ie_primitive_info.hpp:67
std::vector< TensorInfo::Ptr > inputs
Vector of TensorInfo objects that are related to input tensors.
Definition: ie_primitive_info.hpp:55
std::vector< TensorInfo::Ptr > outputs
Vector of TensorInfo object that are related to outputs tensors.
Definition: ie_primitive_info.hpp:60
int iPreAllocatedMemory
Mainly the allocation of the output tensor.
Definition: ie_primitive_info.hpp:48
Structure with information about Primitive.
Definition: ie_primitive_info.hpp:27