Public Member Functions
ie_api.IENetLayer Class Reference

Class Attributes

name
Name of the layer.
type
Layer type.
precision

Layer base operating precision.

Provides getter and setter interfaces.

affinity

Layer affinity set by user or a default affinity set by the IEPlugin.set_initial_affinity() method.

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

net = IENetwork(model=path_to_xml_file, weights=path_to_bin_file)
plugin = IEPlugin(device="HETERO:FPGA,CPU")
plugin.set_config({"TARGET_FALLBACK": "HETERO:FPGA,CPU"})
plugin.set_initial_affinity(net)
for l in net.layers.values():
if l.type == "Convolution":
l.affinity = "CPU"
weights
Dictionary with layer weights, biases or custom blobs if any.
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.
shape
Return the list of the shape of the layer.
layout
Returns the layout of shape of the layer.
out_data
Returns a list of DataPtr objects representing the output data of the layer on corresponding port.

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.