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

Public Member Functions | List of all members
Result Class Reference

Results obtained with the compute() method of the forward element-wise sum layer in the batch processing mode. More...

Public Member Functions

def serializationTag
 
def getSerializationTag
 
def __init__
 
def getValueSize
 
def getLayerData
 
def getLayerDataNumericTable
 
def setLayerData
 
def setLayerDataNumericTable
 
def setResultForBackward
 
def check
 
def allocate_{Float64|Float32}
 
- Public Member Functions inherited from Result
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

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 forward element-wise sum layer

Parameters
inputInput object for the algorithm
parameterParameter of forward element-wise sum layer
methodComputation method for the layer
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 forward element-wise sum layer

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

Returns the result tensor of forward element-wise sum layer

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

Returns the result numeric table of the forward element-wise sum layer

Parameters
idIdentifier of the result numeric table
Returns
Result numeric table that corresponds to the given identifier
def getSerializationTag (   self)

getSerializationTag(Result self) -> int

def getValueSize (   self,
  args 
)

Variant 1

Returns dimensions of value tensor

Returns
Dimensions of value tensor

Variant 2

Returns collection of dimensions of element-wise sum layer output

Parameters
inputSizeCollection of input tensors dimensions
parameterParameters of the algorithm
methodMethod of the algorithm
Returns
Collection of dimensions of element-wise sum layer output
def serializationTag ( )
def setLayerData (   self,
  id,
  value 
)

Sets the result tensor of forward element-wise sum layer

Parameters
idIdentifier of the result tensor
valueResult tensor
def setLayerDataNumericTable (   self,
  id,
  value 
)

Sets the result numeric table of the forward element-wise sum layer

Parameters
idIdentifier of the result numeric table
valueResult numeric tensor
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 operation

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

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