Python* API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Public Member Functions | List of all members
Topology Class Reference

Class defining a neural network topology - a set of layers and connection between them - on the training stage. More...

Public Member Functions

def __init__
 
def size
 
def push_back
 
def add
 
def clear
 
def get
 
def addNext
 
def __getitem__
 
def __setitem__
 
- Public Member Functions inherited from Base
def __init__
 

Detailed Description

Deprecated:
This item will be removed in a future release.

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Variant 1

Default constructor

Deprecated:
This item will be removed in a future release.

Variant 2

Constructs neural network topology by copying layers of another topology

Parameters
tNeural network topology to be used as the source to initialize layers
Deprecated:
This item will be removed in a future release.

Member Function Documentation

def __getitem__ (   self,
  i 
)

read operator []

def __setitem__ (   self,
  i,
  v 
)

write operator []

def add (   self,
  args 
)

Variant 1

Adds an element to the collection of layers and assigns the next available id to it

Parameters
layerElement to add
Returns
Index of the element
Deprecated:
This item will be removed in a future release.

Variant 2

Adds a block of elements to the collection of layers

Parameters
topologyBlockBlock to add
startIndexIndex of the first element of the block in topology
Returns
Index of the last element of the block in topology
Deprecated:
This item will be removed in a future release.
def addNext (   self,
  index,
  next 
)

Adds next layer to the given layer

Parameters
indexIndex of the layer to add next layer
nextIndex of the next layer
Deprecated:
This item will be removed in a future release. Following with LayerDescriptor.addNext method.
Returns
Status of computations
Deprecated:
This item will be removed in a future release.
def clear (   self)

Clears a topology: removes all layer descriptors and sets size to 0

Returns
Status of computations
Deprecated:
This item will be removed in a future release.
def get (   self,
  args 
)

Variant 1

Element access

Parameters
indexIndex of an accessed element
Returns
Reference to the element
Deprecated:
This item will be removed in a future release.

Variant 2

Const element access

Parameters
indexIndex of an accessed element
Returns
Reference to the element
Deprecated:
This item will be removed in a future release.
def push_back (   self,
  layer 
)

Adds an element to the collection of layers and assigns the next available id to it

Parameters
layerElement to add
Returns
Index of the element
Deprecated:
This item will be removed in a future release.
def size (   self)

Number of layers in the topology

Returns
Size of the collection
Deprecated:
This item will be removed in a future release.

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.