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

Public Member Functions | List of all members
Result Class Reference

Results obtained with the compute() method of the backward element-wise sum layer. More...

Public Member Functions

def serializationTag
 
def getSerializationTag
 
def __init__
 
def getResultLayerData
 
def setResultLayerData
 
def getGradient
 
def check
 
def getLayout
 
def allocate_{Float64|Float32}
 
- Public Member Functions inherited from Result
def __init__
 Constructor.
 
def getResult
 
def setResult
 
def getResultLayerData
 
def setResultLayerData
 
def getSerializationTag
 
def check
 
def getLayout
 
def getGradient
 
def allocate_{Float64|Float32}
 
- Public Member Functions inherited from Result
def __init__
 
def getSerializationTag
 
def check
 
- Public Member Functions inherited from SerializationIface
def serialize
 
def deserialize
 
def getSerializationTag
 
- Public Member Functions inherited from Base
def __init__
 
- Public Member Functions inherited from Argument
def __init__
 
def __lshift__
 
def size
 

Detailed Description

Constructor & Destructor Documentation

def __init__ (   self)

Default constructor

Member Function Documentation

def allocate_{Float64|Float32} (   self,
  input,
  parameter,
  method 
)

Allocates memory to store the result of backward element-wise sum layer

Parameters
inputObject containing the input data
parameterParameter of backward element-wise sum layer
methodComputation method
Returns
Status of computations
Full Names
  • allocate_Float64 is for float64
  • allocate_Float32 is for float32
def check (   self,
  input,
  par,
  method 
)

Checks the result of the element-wise sum layer

Parameters
inputInput object of the layer
parParameter of the layer
methodComputation method of the layer
Returns
Status of computations
def getGradient (   self,
  index 
)

Returns resulting gradient of the backward element-wise layer

Parameters
indexIndex of the tensor with gradient
Returns
Resulting gradient that corresponds to the given index
def getLayout (   self)

Returns the layout of the result object for the layer algorithm

Returns
Layout of the result object for the layer algorithm
def getResultLayerData (   self,
  id,
  index 
)

Returns the result tensor of the backward element-wise layer

Parameters
idIdentifier of the result tensor
indexIndex of the result tensor
Returns
Input tensor that corresponds to the given identifier
def getSerializationTag (   self)

getSerializationTag(Result self) -> int

def serializationTag ( )
def setResultLayerData (   self,
  id,
  value,
  index 
)

Sets the result tensor for the backward element-wise layer

Parameters
idIdentifier of the result tensor
valuePointer to the tensor
indexIndex of the result tensor

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

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