To use the DNN Builder API, include ie_builders.hpp header which includes all Inference Engine builders.Īfter that, all builders will be available to use. The Inference Engine Deep Neural Network Builder API does not support the TensorIterator layer. ![]() InferenceEngine::Builder::PriorBoxClustered.InferenceEngine::Builder::Full圜onnected.InferenceEngine::Builder::DetectionOutput.InferenceEngine::Builder::Deconvolution.InferenceEngine::Builder::BatchNormalization.These builders hide all unnecessary methods for the specific layer and add new methods.īelow you can see the list of builders for default layers: Builders for Standard layersĮach default Inference Engine layer has a special builder added in order to simplify the process of layer creation. This class allows you to modify all layer parameters, add new constant data, change type and name of the layer, and create a valid layer object. ![]() InferenceEngine::Builder::Layer class creates and modifies layers. The function convertToICNNNetwork(.) converts INetwork to CNNNetwork. This method validates each layer builder and graph structure and creates INetwork. build() allows to generate Inference Engine Network.getLayers() allows to get all layer builders.getLayerConnections(.) allows to get all connections for a layer builder by ID.getLayer(.) allows to get the layer builder from the network builder by ID.disconnect(.) allows to remove connection from the network builder.connect(.) allows to connect two layer builders using layer builder IDs and port indexes.removeLayer(.) allows to remove layer builder from the network builder by ID.This method creates a copy of the original layer builder, puts the copy to the network builder, and returns the ID of the layer builder which was added to the network builder. addLayer(.) allows to add new layer builders to the network builder. ![]() Network builder contains the following methods for graph modification: If a graph contains custom layers and shape inference is required, you should add Functions for shape inference to the Network builder from custom Context.
0 Comments
Leave a Reply. |