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

Classes | List of all members
Tensor Class Referenceabstract

Class for the data management component responsible for the representation of the tensor data. More...

Detailed Description

Member Function Documentation

◆ allocateDataMemory()

void allocateDataMemory ( )

Allocates memory for a data set

◆ freeDataMemory()

void freeDataMemory ( )

Deallocates the memory allocated for a data set

◆ getCObject()

long getCObject ( )

Returns the address of the native object

Returns
Address of the native object

◆ getDimensions()

long [] getDimensions ( )

Gets dimensions of the tensor

◆ getSize()

long getSize ( )

Gets size of the tensor

◆ getSubtensor() [1/3]

DoubleBuffer getSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
DoubleBuffer  buf 
)

Reads subtensor from the tensor and returns it to java.nio.DoubleBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufBuffer to store results
Returns
Subtensor packed into DoubleBuffer

◆ getSubtensor() [2/3]

FloatBuffer getSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
FloatBuffer  buf 
)

Reads subtensor from the tensor and returns it to java.nio.FloatBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufBuffer to store results
Returns
Subtensor packed into FloatBuffer

◆ getSubtensor() [3/3]

IntBuffer getSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
IntBuffer  buf 
)

Reads subtensor from the tensor and returns it to java.nio.IntBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufBuffer to store results
Returns
Subtensor packed into IntBuffer

◆ releaseSubtensor() [1/3]

void releaseSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
DoubleBuffer  buf 
)

Transfers the data from the input DoubleBuffer into subtemsor of the tensor This function needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufInput DoubleBuffer with the subtensor data

◆ releaseSubtensor() [2/3]

void releaseSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
FloatBuffer  buf 
)

Transfers the data from the input FloatBuffer into subtemsor of the tensor This function needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufInput FloatBuffer with the subtensor data

◆ releaseSubtensor() [3/3]

void releaseSubtensor ( long []  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
IntBuffer  buf 
)

Transfers the data from the input IntBuffer into subtemsor of the tensor This function needs to be defined by user in the subclass of this class.

Parameters
fixedDimsThe number fixed dimensions and values at which dimensions are fixed
rangeDimIdxValues for the next dimension after fixed to get data from
rangeDimNumRange for dimension values to get data from
bufInput IntBuffer with the subtensor data

◆ setDimensions()

void setDimensions ( long []  newDims)

Sets dimensions of the tensor

Classes

class  AllocationFlag
 
class  DataLayout
 

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

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