Python* API Reference for Intel® Data Analytics Acceleration Library 2018 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 prediction 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

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Variant 1
Default constructor

Variant 2

Constructs neural network topology for prediction algorithm by copying layers of topology used for training algoritnm

Parameters
tNeural network topology to be used as the source to initialize layers

Variant 3

Constructs neural network topology by copying layers of another topology

Parameters
tNeural network topology to be used as the source to initialize layers

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

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
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. Use Topology.get instead. Following with LayerDescriptor.addNext method.
Returns
Status of computations
def clear (   self)

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

Returns
Status of computations
def get (   self,
  args 
)

Variant 1

Element access

Parameters
indexIndex of an accessed element
Returns
Reference to the element

Variant 2

Const element access

Parameters
indexIndex of an accessed element
Returns
Reference to the element
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
def size (   self)

Number of layers in the topology

Returns
Size of the collection

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

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