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

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 getValueSize
 
def getValueCollectionSize
 
def getResult
 
def getResultLayerData
 
def setResult
 
def setResultLayerData
 
def getSerializationTag
 
def check
 
def getLayout
 
def setResultForBackward
 
def getValue
 
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

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
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 the algorithm
parameterParameter of algorithm
methodComputation method of the algorithm
Returns
Status of computations
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 getResult (   self,
  id 
)

Returns result of the layer algorithm

Parameters
idIdentifier of the result
Returns
Result that corresponds to the given identifier
def getResultLayerData (   self,
  id 
)

Returns result of the layer algorithm

Parameters
idIdentifier of the result
Returns
Result that corresponds to the given identifier
def getSerializationTag (   self)
def getValue (   self,
  index 
)

Returns resulting value of the layer algorithm

Parameters
indexIndex of the tensor with value
Returns
Resulting value that corresponds to the given index
def getValueCollectionSize (   self,
  inputSize,
  par,
  method 
)

Returns collection of dimensions of layer output

Parameters
inputSizeCollection of input tensor dimensions
parParameters of the algorithm
methodMethod of the algorithm
Returns
Collection of dimensions of layer output
def getValueSize (   self,
  args 
)

Variant 1

Returns collection of dimensions of layer output

Parameters
inputSizeCollection of input tensor dimensions
parParameters of the algorithm
methodMethod of the algorithm
Returns
Collection of dimensions of layer output

Variant 2

Returns collection of dimensions of layer output

Parameters
inputSizeCollection of input tensors dimensions
parParameters of the algorithm
methodMethod of the algorithm
Returns
Collection of dimensions of layer output
def setResult (   self,
  id,
  ptr 
)

Sets the result of the layer algorithm

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

Sets the result that is used in backward layer

Parameters
inputPointer to an object containing the input data
Returns
Status of computations
def setResultLayerData (   self,
  id,
  ptr 
)

Sets the result of the layer algorithm

Parameters
idIdentifier of the result
ptrPointer to the result

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

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