Python* API Reference for Intel® Data Analytics Acceleration Library 2020 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
 
def hostApp
 
def setHostApp
 
- Public Member Functions inherited from Algorithm
def checkComputeParams
 
def getBaseParameter
 
- Public Member Functions inherited from AlgorithmIfaceImpl
def enableChecks
 
def isChecksEnabled
 
- Public Member Functions inherited from AlgorithmIface
def checkComputeParams
 
def checkResult
 
def getMethod
 

Detailed Description

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

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
Deprecated:
This item will be removed in a future release.
def allocateResult (   self)

Allocates memory buffers needed for the computations

Deprecated:
This item will be removed in a future release.
def clone (   self)

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

Returns
Pointer to the newly allocated backward layer
Deprecated:
This item will be removed in a future release.
def getLayerInput (   self)

Returns the structure that contains input objects of the layer

Returns
Structure that contains input objects of the layer
Deprecated:
This item will be removed in a future release.
def getLayerParameter (   self)

Returns the structure that contains parameters of the layer

Returns
Structure that contains parameters of the layer
Deprecated:
This item will be removed in a future release.
def getLayerResult (   self)

Returns the structure that contains results of the layer

Returns
Structure that contains results of the layer
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.