Go to the documentation of this file.
64 for (
int i = 0;
i < 4; ++
i)
83 switch (params->
un_op) {
85 for (
int i = 0;
i < dims_count; ++
i)
89 for (
int i = 0;
i < dims_count; ++
i)
93 for (
int i = 0;
i < dims_count; ++
i)
97 for (
int i = 0;
i < dims_count; ++
i)
101 for (
int i = 0;
i < dims_count; ++
i)
102 dst[
i] = asin(
src[
i]);
105 for (
int i = 0;
i < dims_count; ++
i)
106 dst[
i] = acos(
src[
i]);
109 for (
int i = 0;
i < dims_count; ++
i)
110 dst[
i] = atan(
src[
i]);
113 for (
int i = 0;
i < dims_count; ++
i)
114 dst[
i] = sinh(
src[
i]);
117 for (
int i = 0;
i < dims_count; ++
i)
118 dst[
i] = cosh(
src[
i]);
121 for (
int i = 0;
i < dims_count; ++
i)
122 dst[
i] = tanh(
src[
i]);
125 for (
int i = 0;
i < dims_count; ++
i)
126 dst[
i] = asinh(
src[
i]);
129 for (
int i = 0;
i < dims_count; ++
i)
130 dst[
i] = acosh(
src[
i]);
133 for (
int i = 0;
i < dims_count; ++
i)
134 dst[
i] = atanh(
src[
i]);
137 for (
int i = 0;
i < dims_count; ++
i)
141 for (
int i = 0;
i < dims_count; ++
i)
145 for (
int i = 0;
i < dims_count; ++
i)
149 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)
Load the Unary Math Layer.
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)
Execute the Unary Math Layer.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
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
#define i(width, name, range_min, range_max)
static av_always_inline av_const double round(double x)
int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd)