name
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"
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
Deprecated: 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
Deprecated: 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
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...
This class represents a main layer information and providing setters allowing to modify layer properties.