Polaris Project
Classes
Data Types

Classes

struct  PolarisContext
 Context object. More...
 

Detailed Description

All data types and enums of Polaris library.

Enumeration Type Documentation

◆ PolarisMemcpyKind

Indicates the copy direction

Enumerator
POLARIS_DEVICE_TO_HOST 

Copy from FPGA to CPU.

POLARIS_HOST_TO_DEVICE 

Copy from CPU to FPGA.

POLARIS_DEVICE_TO_DEVICE 

Copy from FPGA to CPU.

◆ PolarisTransType

Indicates whether transpose operation needs to be performed

Enumerator
POLARIS_NO_TRANS 

Non-transpose operation.

POLARIS_TRANS 

Transpose operation.

◆ PolarisDataType

Types to specify the data precision

Enumerator
POLARIS_FP32 

32-bit floating-point

POLARIS_FP16 

16-bit floating-point

POLARIS_INT32 

32-bit signed integer

POLARIS_INT16 

16-bit signed integer

POLARIS_INT8 

8-bit signed integer

◆ PolarisDataFormat

Data format supported by convolution operation

Enumerator
POLARIS_FORMAT_NHWC 

NHWC format.

POLARIS_FORMAT_NCHW 

NCHW format.

◆ PolarisPoolingMode

Function types supported by pooling operation

Enumerator
POLARIS_POOLING_MAX 

Max-pooling.

POLARIS_POOLING_AVG 

Avg-pooling.

◆ PolarisActivationType

Activation types

Enumerator
POLARIS_NO_ACTIVATION 

Non-activation.

POLARIS_TANH 

Tanh activation.

POLARIS_SIGMOID 

Sigmoid activation.

POLARIS_RELU 

Relu activation.

POLARIS_SOFTSIGN 

Softsign activation.

◆ PolarisConvStreamFunctionType

Conv-stream types

Enumerator
POLARIS_CONVSTREAM_CONVMTX1D 

Convmtx operation.

POLARIS_CONVSTREAM_DCONVMTX1D 

Deconvmtx operation.

POLARIS_CONVSTREAM_MAXPOLLING1D 

maxpooling operation

POLARIS_CONVSTREAM_DMAXPOLLING1D 

dmaxpooling operation

◆ PolarisStatus

Return status of polaris interface

Enumerator
POLARIS_OK 

Everything goes fine.

POLARIS_ERR_NOT_SUPPORT 

The requested operation is not supported.

POLARIS_ERR_INVALID 

Invalid paramaters.

POLARIS_ERR_RUNTIME 

Runtime error.

◆ PolarisElementWiseType

Function types supported by polaris_eltwise()

Enumerator
POLARIS_ADD 

element-wise addition

POLARIS_MUL 

element-wise multiplication

POLARIS_MIN 

element-wise minimal of two vectors

POLARIS_MAX 

element-wise maximal of two vecotrs