1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
6 * @brief This is a header file for the IE Context class
12 #include <ie_iextension.h>
14 #include <details/caseless.hpp>
19 namespace InferenceEngine {
22 * @deprecated Use ngraph API instead.
23 * @brief This class implements object
25 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(Context) {
30 * @brief Registers extension within the context
32 * @param ext Pointer to already loaded extension
34 void addExtension(const IShapeInferExtensionPtr& ext);
37 * @brief Registers Shape Infer implementation within the Context
39 * @param type Layer type
40 * @param impl Shape Infer implementation
43 void addShapeInferImpl(const std::string& type, const IShapeInferImpl::Ptr& impl);
46 * @brief Returns the shape infer implementation by layer type
48 * @param type Layer type
49 * @return Shape Infer implementation
51 IShapeInferImpl::Ptr getShapeInferImpl(const std::string& type);
54 details::caseless_map<std::string, IShapeInferImpl::Ptr> shapeInferImpls;
57 } // namespace InferenceEngine