Python* API Reference for Intel® Data Analytics Acceleration Library 2019 Update 5

Public Member Functions | List of all members
Input Class Reference

Input parameters for the layer algorithm More...

Public Member Functions

def __init__
 
def getInput
 
def getInputLayerData
 
def setInput
 
def setInputLayerData
 
def addInputGradient
 
def setInputFromForward
 
def check
 
def getLayout
 
- Public Member Functions inherited from InputIface
def __init__
 
- Public Member Functions inherited from Input
def __init__
 
def check
 
- Public Member Functions inherited from Argument
def __init__
 
def __lshift__
 
def size
 

Detailed Description

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Member Function Documentation

def addInputGradient (   self,
  igTensor,
  index 
)

Adds tensor with input gradient to the input object of the layer algorithm

Parameters
igTensorTensor with input gradient
indexIndex of the tensor with input gradient
Returns
Status of computations
def check (   self,
  par,
  method 
)

Checks an input object for the layer algorithm

Parameters
parParameter of algorithm
methodComputation method of the algorithm
Returns
Status of computations
def getInput (   self,
  id 
)

Returns input Tensor of the layer algorithm

Parameters
idIdentifier of the input tensor
Returns
Input tensor that corresponds to the given identifier
def getInputLayerData (   self,
  id 
)

Returns input Tensor of the layer algorithm

Parameters
idIdentifier of the input tensor
Returns
Input tensor that corresponds to the given identifier
def getLayout (   self)

Returns the layout of the input object for the layer algorithm

Returns
Layout of the input object for the layer algorithm
def setInput (   self,
  id,
  ptr 
)

Sets input for the layer algorithm

Parameters
idIdentifier of the input object
ptrPointer to the object
def setInputFromForward (   self,
  result 
)

Sets input structure retrieved from the result of the forward layer

Parameters
resultResult of the forward layer
Returns
Status of computations
def setInputLayerData (   self,
  id,
  ptr 
)

Sets input for the layer algorithm

Parameters
idIdentifier of the input object
ptrPointer to the object

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

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