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

Public Member Functions | List of all members
Result Class Reference

Provides methods to access the result obtained with the compute() method of the layer algorithm. More...

Public Member Functions

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

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Allocates memory to store the results of layer

Parameters
inputPointer to the input structure
parPointer to the parameter structure
methodComputation method of the algorithm
Returns
Status of computations
Deprecated:
This item will be removed in a future release.
Full Names
  • allocate_Float64 is for float64
  • allocate_Float32 is for float32
def check (   self,
  input,
  parameter,
  method 
)

Checks the result object for the layer algorithm

Parameters
inputInput of algorithm
parameterParameter of algorithm
methodComputation method of the algorithm
Returns
Status of computations
Deprecated:
This item will be removed in a future release.
def getGradient (   self,
  index 
)

Returns resulting gradient of the layer algorithm

Parameters
indexIndex of the tensor with gradient
Returns
Resulting gradient that corresponds to the given index
Deprecated:
This item will be removed in a future release.
def getLayout (   self)

Returns the layout of the result object for the layer algorithm

Returns
Layout of the result object for the layer algorithm
Deprecated:
This item will be removed in a future release.
def getResult (   self,
  id 
)

Returns result of the layer algorithm

Parameters
idIdentifier of the result
Returns
Result that corresponds to the given identifier
Deprecated:
This item will be removed in a future release.
def getResultLayerData (   self,
  id 
)

Returns result InputLayerData of the layer algorithm

Parameters
idIdentifier of the result object
Returns
Resulting InputLayerData that corresponds to the given identifier
Deprecated:
This item will be removed in a future release.
def getSerializationTag (   self)
Deprecated:
This item will be removed in a future release.
def setResult (   self,
  id,
  ptr 
)

Sets the result of the layer algorithm

Parameters
idIdentifier of the result
ptrPointer to the result
Deprecated:
This item will be removed in a future release.
def setResultLayerData (   self,
  id,
  ptr 
)

Sets result for the layer algorithm

Parameters
idIdentifier of the result object
ptrPointer to the object
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.