27 #define CONVERT_OP_FLOAT_STR(x, type, round) (convert_##type##_sat##round(x)) 29 #define CONVERT_OP_FLOAT_STR(x, type, round) (convert_##type##round(x)) 31 #define CONVERT_OP_FLOAT(x, type, round) CONVERT_OP_FLOAT_STR(x, type, round) 33 #if defined(DATA_TYPE_IN1) && defined(DATA_TYPE_IN2) && defined(ACC_DATA_TYPE) && defined(DATA_TYPE_OUT) 35 #if defined(ACTIVATION_TYPE) 37 #endif // defined(ACTIVATION_TYPE) 73 __kernel
void pixelwise_mul_float(
91 #ifdef DATA_TYPE_FLOAT 99 #if defined(ACTIVATION_TYPE) 101 #else // defined(ACTIVATION_TYPE) 104 #endif // defined(ACTIVATION_TYPE) 108 #if defined(DATA_TYPE) 137 __kernel
void pixelwise_mul_complex(
155 res = { vin1.x *vin2.x - vin1.y * vin2.y, vin1.x *vin2.y + vin2.x * vin1.y };
157 #if defined(ACTIVATION_TYPE) 159 #else // defined(ACTIVATION_TYPE) 162 #endif // defined(ACTIVATION_TYPE) 165 #endif // defined(DATA_TYPE)
Structure to hold 3D tensor information.
#define CONVERT_OP_FLOAT(x, type, round)
#define CONVERT_TO_TENSOR3D_STRUCT(name)
__global uchar * ptr
Pointer to the starting postion of the buffer.
#define TENSOR3D_DECLARATION(name)
#define ACTIVATION(op, DATA_TYPE, VEC_SIZE, x, A_VAL, B_VAL)
#define VEC_DATA_TYPE(type, size)