pub struct Net { /* private fields */ }
Expand description
This class allows to create and manipulate comprehensive artificial neural networks.
Neural network is presented as directed acyclic graph (DAG), where vertices are Layer instances,
and edges specify relationships between layers inputs and outputs.
Each network layer has unique integer id and unique string name inside its network.
LayerId can store either layer name or layer id.
This class supports reference counting of its instances, i. e. copies point to the same instance.
Create a network from Intel’s Model Optimizer intermediate representation (IR).
- xml: XML configuration file with network’s topology.
- bin: Binary file with trained weights.
Networks imported from Intel’s Model Optimizer are launched in Intel’s Inference Engine
backend.
Create a network from Intel’s Model Optimizer in-memory buffers with intermediate representation (IR).
- bufferModelConfig: buffer with model’s configuration.
- bufferWeights: buffer with model’s trained weights.
Net object.
Create a network from Intel’s Model Optimizer in-memory buffers with intermediate representation (IR).
- bufferModelConfigPtr: buffer pointer of model’s configuration.
- bufferModelConfigSize: buffer size of model’s configuration.
- bufferWeightsPtr: buffer pointer of model’s trained weights.
- bufferWeightsSize: buffer size of model’s trained weights.
Net object.
Return an the underlying raw pointer while consuming this wrapper.
Read more
Return the underlying mutable raw pointer
Read more
Performs copy-assignment from
source
.
Read more
Executes the destructor for this type.
Read more
Dump net structure, hyperparameters, backend, target and fusion to dot file
Read more
Adds new layer and connects its first input to the first output of previously added layer.
Read more
Adds new layer and connects its first input to the first output of previously added layer.
Read more
Connects output of the first layer to input of the second layer.
Read more
Connects #@p outNum output of the first layer to #@p inNum input of the second layer.
Read more
Sets outputs names of the network input pseudo layer.
Read more
Specify shape of network input.
Runs forward pass to compute output of layer with name @p outputName.
Read more
Runs forward pass to compute output of layer with name @p outputName.
Read more
Runs forward pass to compute output of layer with name @p outputName.
Read more
Runs forward pass to compute outputs of layers listed in @p outBlobNames.
Read more
Runs forward pass to compute outputs of layers listed in @p outBlobNames.
Read more
Returns a quantized Net from a floating-point Net.
Read more
Ask network to use specific computation backend where it supported.
Read more
Ask network to make computations on specific target device.
Read more
Sets the new input value for the network
Read more
Sets the new value for the learned param of the layer.
Read more
Enables or disables layer fusion in the network.
Read more
Enables or disables the Winograd compute branch. The Winograd compute branch can speed up
3x3 Convolution at a small loss of accuracy.
Read more
Returns overall time for inference and timings (in ticks) for layers.
Read more
Returns true if there are no layers in the network.
Converts string name of the layer to the integer identifier.
Read more
Returns pointer to layer with specified id or name which the network use.
👎Deprecated: Use int getLayerId(const String &layer)
Returns pointer to layer with specified id or name which the network use.
Read more
👎Deprecated: to be removed
Returns pointer to layer with specified id or name which the network use.
Read more
Returns pointers to input layers of specific layer.
Returns input scale and zeropoint for a quantized Net.
Read more
Returns output scale and zeropoint for a quantized Net.
Read more
Returns parameter blob of the layer.
Read more
Returns indexes of layers with unconnected outputs.
Read more
Returns names of layers with unconnected outputs.
Read more
Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn’t necessary.
Read more
Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn’t necessary.
Read more
Returns input and output shapes for layer with specified
id in loaded model; preliminary inferencing isn’t necessary.
Read more
Returns input and output shapes for layer with specified
id in loaded model; preliminary inferencing isn’t necessary.
Read more
Computes FLOP for whole loaded model with specified input shapes.
Read more
Computes FLOP for whole loaded model with specified input shapes.
Read more
Computes FLOP for whole loaded model with specified input shapes.
Read more
Computes FLOP for whole loaded model with specified input shapes.
Read more
Returns list of types for layer used in model.
Read more
Returns count of layers of specified type.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for model.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for model.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for model.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for model.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for each layer.
Read more
Computes bytes number which are required to store
all weights and intermediate blobs for each layer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.