Go to the documentation of this file.
33 float input[1*1*2*3] = {
34 -3, 2.5, 2, -2.1, 7.8, 100
41 operands[0].
dims[0] = 1;
42 operands[0].
dims[1] = 1;
43 operands[0].
dims[2] = 2;
44 operands[0].
dims[3] = 3;
51 for (
int i = 0;
i <
sizeof(
input) /
sizeof(
float);
i++) {
54 printf(
"at index %d, output: %f, expected_output: %f\n",
i,
output[
i], expected_output);
65 int main(
int argc,
char **argv)
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
int ff_dnn_execute_layer_maximum(DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
void * data
data pointer with data length in bytes.
static __device__ float fabs(float a)
int32_t dims[4]
there are two memory layouts, NHWC or NCHW, so we use dims, dims[0] is Number.
printf("static const uint8_t my_array[100] = {\n")
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)
int main(int argc, char **argv)
union DnnLayerMaximumParams::@205 val