24 #if defined(ACT) && defined(DATA_TYPE) && defined(VEC_SIZE) 26 #define TYPE VEC_DATA_TYPE(DATA_TYPE, VEC_SIZE) 68 __global uchar *input_addr = input_ptr + input_offset_first_element_in_bytes + x_offs + get_global_id(1) *
input_stride_y + get_global_id(2) *
input_stride_z;
70 __global uchar *output_addr = input_addr;
72 __global uchar *output_addr = output_ptr + output_offset_first_element_in_bytes + x_offs + get_global_id(1) * output_stride_y + get_global_id(2) * output_stride_z;
SimpleTensor< T > activation_layer(const SimpleTensor< T > &src, ActivationLayerInfo info, const QuantizationInfo &oq_info)
const size_t input_stride_y
#define STORE_VECTOR_SELECT(basename, data_type, ptr, vec_size, leftover, cond)
Store a vector that can only be partial in x.
const size_t input_stride_z
#define TENSOR3D_DECLARATION(name)
#define ACTIVATION(op, DATA_TYPE, VEC_SIZE, x, A_VAL, B_VAL)