#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "xnnpack.h"
#include "xnnpack/allocator.h"
#include "xnnpack/cache.h"
#include "xnnpack/common.h"
#include "xnnpack/compute.h"
#include "xnnpack/config-types.h"
#include "xnnpack/config.h"
#include "xnnpack/log.h"
#include "xnnpack/math.h"
#include "xnnpack/operator-type.h"
#include "xnnpack/operator-utils.h"
#include "xnnpack/operator.h"
#include "xnnpack/pack.h"
#include "xnnpack/params.h"
#include "pthreadpool.h"
static enum xnn_status create_prelu_nc(
size_t input_channels,
size_t slope_channels,
size_t input_stride,
size_t output_stride,
const void* negative_slope,
uint32_t flags,
uint32_t log2_weights_element_size,
xnn_pack_prelu_w_fn pack_prelu_w,
enum xnn_operator_type operator_type,
const struct xnn_prelu_config* prelu_config,
xnn_code_cache_t code_cache,
xnn_weights_cache_t weights_cache,
xnn_operator_t* prelu_op_out)
{ … }
enum xnn_status xnn_create_prelu_nc_f16(
size_t input_channels,
size_t slope_channels,
size_t input_stride,
size_t output_stride,
const void* negative_slope,
uint32_t flags,
xnn_code_cache_t code_cache,
xnn_weights_cache_t weights_cache,
xnn_operator_t* prelu_op_out)
{ … }
enum xnn_status xnn_create_prelu_nc_f32(
size_t input_channels,
size_t slope_channels,
size_t input_stride,
size_t output_stride,
const float* negative_slope,
uint32_t flags,
xnn_code_cache_t code_cache,
xnn_weights_cache_t weights_cache,
xnn_operator_t* prelu_op_out)
{ … }
static enum xnn_status reshape_prelu_nc(
xnn_operator_t prelu_op,
enum xnn_operator_type expected_operator_type,
size_t batch_size,
uint32_t log2_element_size,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_prelu_nc_f16(
xnn_operator_t prelu_op,
size_t batch_size,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_prelu_nc_f32(
xnn_operator_t prelu_op,
size_t batch_size,
pthreadpool_t threadpool)
{ … }
static enum xnn_status setup_prelu_nc(
xnn_operator_t prelu_op,
enum xnn_operator_type expected_operator_type,
const float* input,
float* output)
{ … }
enum xnn_status xnn_setup_prelu_nc_f16(
xnn_operator_t prelu_op,
const void* input,
void* output)
{ … }
enum xnn_status xnn_setup_prelu_nc_f32(
xnn_operator_t prelu_op,
const float* input,
float* output)
{ … }