MCPcopy Create free account
hub / github.com/OAID/Tengine / GetMaxArray

Function GetMaxArray

executor/operator/ref/kernel/softmax/ref_softmax_kernel.h:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48static void GetMaxArray(float* input, float* array, int in_size, int on_size)
49{
50 float* input_ptr = ( float* )input;
51 float* array_ptr = ( float* )array;
52 memcpy(array_ptr,input_ptr,in_size* sizeof(float));
53 for(int j = 0; j < on_size; j++)
54 for(int l = 0; l < in_size; l++)
55 {
56 if(array_ptr[l] < input_ptr[j * in_size + l])
57 array_ptr[l] = input_ptr[j * in_size + l];
58
59 }
60}
61
62static void GetOutResult(float* input, float* output, float* array, float* sum_array, int in_size, int on_size)
63{

Callers 7

ref_softmax_kernel_fp32Function · 0.70
ref_softmax_kernel_int8Function · 0.70
ref_softmax_kernel_uint8Function · 0.70
ref_softmax_kernel_fp16Function · 0.70
softmax_kernelMethod · 0.50
RunMethod · 0.50
RunMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected