1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
6 * @brief This is a header file for the IE Context class
11 #include <details/caseless.hpp>
12 #include <ie_iextension.h>
17 namespace InferenceEngine {
20 * @brief This class implements object
22 class INFERENCE_ENGINE_API_CLASS(Context) {
27 * @brief Registers extension within the context
28 * @param ext Pointer to already loaded extension
30 void addExtension(const IShapeInferExtensionPtr& ext);
33 * @brief Registers Shape Infer implementation within the Context
34 * @param type Layer type
35 * @param impl Shape Infer implementation
37 void addShapeInferImpl(const std::string& type, const IShapeInferImpl::Ptr& impl);
40 * @brief Returns the shape infer implementation by layer type
41 * @param type Layer type
42 * @return Shape Infer implementation
44 IShapeInferImpl::Ptr getShapeInferImpl(const std::string& type);
47 details::caseless_map<std::string, IShapeInferImpl::Ptr> shapeInferImpls;
50 } // namespace InferenceEngine