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

Public Member Functions | List of all members
LayerIface Class Reference

Abstract class which defines interface for the layer. More...

Public Member Functions

def getLayerResult
 
def getLayerInput
 
def getLayerParameter
 
def clone
 
def allocateResult
 
def addInput
 
- Public Member Functions inherited from AlgorithmImpl
def computeNoThrow
 
def compute
 
def checkComputeParams
 
def checkResult
 
def setupCompute
 
def resetCompute
 
def enableResetOnCompute
 
- Public Member Functions inherited from Algorithm
def checkComputeParams
 
def getBaseParameter
 
- Public Member Functions inherited from AlgorithmIfaceImpl
def enableChecks
 
def isChecksEnabled
 
def getErrors
 
- Public Member Functions inherited from AlgorithmIface
def checkComputeParams
 
def checkResult
 
def getMethod
 
def getErrors
 

Detailed Description

Member Function Documentation

def addInput (   self,
  result,
  resultIndex,
  inputIndex 
)

Connects two layers in neural network by getting tensor with gradient from the result of the previous layer and adding it to the input object of this layer algorithm

Parameters
resultStructure that contains results of the previous layer
resultIndexIndex of the tensor with gradient in the structure that contains results of the previous layer
inputIndexIndex in the input object of this layer algorithm where the tensor with gradient should be placed
def allocateResult (   self)

Allocates memory buffers needed for the computations

def clone (   self)

Returns a pointer to the newly allocated forward neural network layer with a copy of input objects and parameters of this layer

Returns
Pointer to the newly allocated forward layer
def getLayerInput (   self)

Returns the structure that contains input objects of the layer

Returns
Structure that contains input objects of the layer
def getLayerParameter (   self)

Returns the structure that contains parameters of the layer

Returns
Structure that contains parameters of the layer
def getLayerResult (   self)

Returns the structure that contains results of the layer

Returns
Structure that contains results of the layer

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

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