1 #include "tvm/runtime/c_runtime_api.h" 2 #include "tvm/runtime/c_backend_api.h" 8 void* arg0 = (((
TVMValue*)args)[0].v_handle);
9 void* arg1 = (((
TVMValue*)args)[1].v_handle);
10 float* placeholder = (
float*)(((
TVMArray*)arg0)[0].data);
11 float* tensor = (
float*)(((
TVMArray*)arg1)[0].data);
13 for (int32_t ax2 = 0; ax2 < 2; ++ax2) {
14 for (int32_t ax3 = 0; ax3 < 2; ++ax3) {
15 tensor[((ax2 * 2) + ax3)] = -3.402823e+38f;
16 for (int32_t rv = 0; rv < 3; ++rv) {
17 for (int32_t rv1 = 0; rv1 < 3; ++rv1) {
18 float _1 = tensor[((ax2 * 2) + ax3)];
19 float _2 = placeholder[((((ax2 * 24) + (rv * 8)) + (ax3 * 3)) + rv1)];
20 tensor[((ax2 * 2) + ax3)] = ((_1) > (_2) ? (_1) : (_2));
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)
Plain C Tensor object, does not manage memory.