Go to the documentation of this file.
65 for (
int i = 0;
i < 4; ++
i)
84 switch (params->
un_op) {
86 for (
int i = 0;
i < dims_count; ++
i)
90 for (
int i = 0;
i < dims_count; ++
i)
94 for (
int i = 0;
i < dims_count; ++
i)
98 for (
int i = 0;
i < dims_count; ++
i)
102 for (
int i = 0;
i < dims_count; ++
i)
103 dst[
i] = asin(
src[
i]);
106 for (
int i = 0;
i < dims_count; ++
i)
107 dst[
i] = acos(
src[
i]);
110 for (
int i = 0;
i < dims_count; ++
i)
111 dst[
i] = atan(
src[
i]);
114 for (
int i = 0;
i < dims_count; ++
i)
115 dst[
i] = sinh(
src[
i]);
118 for (
int i = 0;
i < dims_count; ++
i)
119 dst[
i] = cosh(
src[
i]);
122 for (
int i = 0;
i < dims_count; ++
i)
123 dst[
i] = tanh(
src[
i]);
126 for (
int i = 0;
i < dims_count; ++
i)
127 dst[
i] = asinh(
src[
i]);
130 for (
int i = 0;
i < dims_count; ++
i)
131 dst[
i] = acosh(
src[
i]);
134 for (
int i = 0;
i < dims_count; ++
i)
135 dst[
i] = atanh(
src[
i]);
138 for (
int i = 0;
i < dims_count; ++
i)
142 for (
int i = 0;
i < dims_count; ++
i)
146 for (
int i = 0;
i < dims_count; ++
i)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
DNNMathUnaryOperation un_op
int32_t ff_calculate_operand_data_length(const DnnOperand *oprd)
static __device__ float ceil(float a)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int ff_dnn_load_layer_math_unary(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
static __device__ float floor(float a)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
int ff_dnn_execute_layer_math_unary(DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
unsigned int avio_rl32(AVIOContext *s)
int32_t output_operand_index
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some input
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
static av_always_inline av_const double round(double x)
int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd)