Public Member Functions
ie_api.IENetLayer Class Reference

Class Attributes

name
Name of the layer.
type
Layer type.
precision
Note
This property is deprecated. Please, use out_data property to access DataPtr objects for all output ports, which contains full information about layer's output data including precision.

Layer base operating precision. Provides getter and setter interfaces.

affinity

Layer affinity set by user or a default affinity may be setted using IECore.query_network() method which returns dictionary {layer_name : device}.

The affinity attribute provides getter and setter interfaces, so the layer affinity can be modified directly. For example:

ie = IECore()
net = ie.read_network(model=path_to_xml_file, weights=path_to_bin_file)
layers_map = ie.query_network(network=net, device_name="HETERO:GPU,CPU")
layers = net.layers
for layer, device in layers_map.items():
layers[layer].affinity = device
params

Layer specific parameters.

Provides getter and setter interfaces to get and modify layer parameters. Please note that some modifications can be ignored and/or overwritten by target plugin (e.g. modification of convolution kernel size will be reflected in layer parameters but finally the plugin will ignore it and will use initial kernel size)

parents
Returns a list, which contains names of layers preceding this layer.
children
Returns a list, which contains names of layers following this layer.
layout
Note
This property is deprecated. Please, use out_data property to access DataPtr objects for all output ports, which contains full information about layer's output data including layout

Returns the layout of the layer output data on 1st port

shape
Note
This property is deprecated. Please, use out_data property to access DataPtr objects for all output ports, which contains full information about layer's output data including shape

Return the list of dimension of the layer output data on 1st port

out_data
Returns a list of DataPtr objects representing the output data of the layer on corresponding port.
in_data
Returns a list of DataPtr objects representing the input data of the layer on corresponding port.
blobs

Dictionary with layer arbitrary layer blobs including weights and biases as any.

weights
Note
This property is deprecated. Please use blobs property instead.

Dictionary with layer weights, biases or custom blobs if any

This class represents a main layer information and providing setters allowing to modify layer properties. More...

Detailed Description

This class represents a main layer information and providing setters allowing to modify layer properties.