PandA-2024.02
13_maxp_b.cc
Go to the documentation of this file.
1 #include "tvm/runtime/c_runtime_api.h"
2 #include "tvm/runtime/c_backend_api.h"
3 extern void* __tvm_module_ctx = NULL;
4 #ifdef __cplusplus
5 extern "C"
6 #endif
7 TVM_DLL int32_t fused_nn_max_pool2d( void* args, void* arg_type_ids, int32_t num_args) {
8 
9  void* arg0 = (((TVMValue*)args)[0].v_handle);
10  float* placeholder = (float*)(((TVMArray*)arg0)[0].data);
11 
12  void* arg1 = (((TVMValue*)args)[1].v_handle);
13  float* tensor = (float*)(((TVMArray*)arg1)[0].data);
14 
15  for (int32_t ax2 = 0; ax2 < 10; ++ax2) {
16  for (int32_t ax3 = 0; ax3 < 10; ++ax3) {
17  tensor[((ax2 * 10) + ax3)] = -3.402823e+38f;
18  for (int32_t rv = 0; rv < 3; ++rv) {
19  for (int32_t rv1 = 0; rv1 < 3; ++rv1) {
20  float _1 = tensor[((ax2 * 10) + ax3)];
21  float _2 = placeholder[((((ax2 * 96) + (rv * 32)) + (ax3 * 3)) + rv1)];
22  tensor[((ax2 * 10) + ax3)] = ((_1) > (_2) ? (_1) : (_2));
23  }
24  }
25  }
26  }
27  return 0;
28 }
29 
#define NULL
void * __tvm_module_ctx
Union type of values being passed through API and function calls.
TVM_DLL int32_t fused_nn_max_pool2d(void *args, void *arg_type_ids, int32_t num_args)
Definition: 13_maxp_b.cc:7
#define TVM_DLL
Definition: c_runtime_api.h:59
Plain C Tensor object, does not manage memory.
Definition: dlpack.h:111

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13