repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
Tengine | Tengine-master/core/include/tengine_c_compat.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 6,522 | 26.292887 | 114 | h |
Tengine | Tengine-master/core/include/olreport/base_socket.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,159 | 26 | 93 | h |
Tengine | Tengine-master/core/include/olreport/clientsocket.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,251 | 21.747475 | 89 | h |
Tengine | Tengine-master/core/include/olreport/reportdata.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,390 | 28.595745 | 121 | h |
Tengine | Tengine-master/core/include/olreport/reportbasedata.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 3,464 | 24.108696 | 93 | h |
Tengine | Tengine-master/core/include/olreport/onlinereportfmtdat.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,751 | 28.2 | 86 | h |
Tengine | Tengine-master/core/include/olreport/md5.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,550 | 27.2 | 71 | h |
Tengine | Tengine-master/core/include/olreport/onlinereportutil.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,493 | 26.666667 | 99 | h |
Tengine | Tengine-master/core/include/olreport/thread.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,612 | 23.439394 | 63 | h |
Tengine | Tengine-master/core/include/olreport/onlinereportmgr.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,790 | 30.421053 | 132 | h |
Tengine | Tengine-master/tests/model/cmdline.h | /*
Copyright (c) 2009, Hideyuki Tanaka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 18,622 | 21.683313 | 105 | h |
Tengine | Tengine-master/serializer/tengine/tm_generate.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,715 | 29.642857 | 110 | c |
Tengine | Tengine-master/serializer/include/tm_generate.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,363 | 31.47619 | 111 | h |
Tengine | Tengine-master/serializer/include/tengine/v1/tm1_format.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 11,631 | 25.557078 | 104 | h |
Tengine | Tengine-master/serializer/include/tengine/v2/tm2_format.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 23,319 | 24.048335 | 105 | h |
Tengine | Tengine-master/executor/operator/arm32/conv/winograd/wino_trans_ker.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 5,842 | 30.245989 | 102 | h |
Tengine | Tengine-master/executor/operator/arm32/conv/winograd/wino_trans_out.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 15,824 | 36.5 | 120 | h |
Tengine | Tengine-master/executor/operator/arm32/conv/winograd/wino_config.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,397 | 29.391304 | 63 | h |
Tengine | Tengine-master/executor/operator/x86/fully_connected_x86.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,912 | 29.663158 | 120 | h |
Tengine | Tengine-master/executor/operator/arm8_2/conv/winograd/wino_trans_ker.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 5,597 | 30.627119 | 104 | h |
Tengine | Tengine-master/executor/operator/arm8_2/conv/winograd/wino_trans_inp.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 19,840 | 30.847512 | 121 | h |
Tengine | Tengine-master/executor/operator/arm8_2/conv/winograd/wino_trans_out.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 16,201 | 39.10396 | 125 | h |
Tengine | Tengine-master/executor/operator/arm8_2/conv/winograd/wino_config.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,499 | 27.301887 | 63 | h |
Tengine | Tengine-master/executor/operator/arm8_2/conv/winograd/wino_hgemm.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 18,228 | 43.245146 | 132 | h |
Tengine | Tengine-master/executor/operator/arm64/conv/winograd/wino_trans_ker.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 6,751 | 33.625641 | 102 | h |
Tengine | Tengine-master/executor/operator/arm64/conv/winograd/wino_trans_inp.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 24,055 | 35.670732 | 125 | h |
Tengine | Tengine-master/executor/operator/arm64/conv/winograd/wino_sgemm.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 4,364 | 52.231707 | 128 | h |
Tengine | Tengine-master/executor/operator/arm64/conv/winograd/wino_trans_out.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 17,767 | 39.108352 | 118 | h |
Tengine | Tengine-master/executor/operator/arm64/conv/winograd/wino_config.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,513 | 27.566038 | 63 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/tanh/ref_tanh_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,177 | 31.722222 | 82 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/tanh/ref_tanh_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,287 | 32.894737 | 92 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/tanh/ref_tanh_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,596 | 22.144928 | 74 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/tanh/ref_tanh_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,558 | 34.431818 | 91 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/tanh/ref_tanh_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,354 | 34.657895 | 92 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/psroipooling/ref_psroipooling_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,872 | 22.708861 | 112 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/psroipooling/ref_psroipooling_fp32.c | static int ref_psroipooling_fp32(float* featmap, float* roi, float* output, psroipooling_ref_param* param)
{
int pool_hw = param->out_h * param->out_w;
int output_dim = param->output_dim;
for(int n = 0; n < param->num_rois; ++n)
{
float* roi_ptr = roi + n * 4;
float roi_x0 = round(roi_p... | 2,330 | 37.213115 | 106 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/psroipooling/ref_psroipooling_fp16.c | static int ref_psroipooling_fp16(__fp16* featmap, __fp16* roi, __fp16* output, psroipooling_ref_param* param)
{
int pool_hw = param->out_h * param->out_w;
int output_dim = param->output_dim;
for(int n = 0; n < param->num_rois; ++n)
{
__fp16* roi_ptr = roi + n * 4;
int roi_x0 = round(fp1... | 2,382 | 40.807018 | 109 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/power/ref_power_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,608 | 21.041096 | 77 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/scale/ref_scale_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,311 | 34.030303 | 122 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/scale/ref_scale_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,587 | 35.090909 | 105 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/scale/ref_scale_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,586 | 22.338235 | 96 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/upsample/ref_upsample_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,575 | 21.84058 | 81 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/batchToSpaceND/ref_batchToSpaceND_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,775 | 21.769231 | 109 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/region/ref_region_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,558 | 34.431818 | 95 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/region/ref_region_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 3,940 | 24.262821 | 118 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/region/ref_region_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,032 | 34.62069 | 90 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/region/ref_region_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,482 | 34.309524 | 92 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/region/ref_region_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,742 | 32.519231 | 92 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/argmin/ref_argmin_fp32.c | static int ref_argmin_fp32(float* input, int* output, const ref_argmin_param* param)
{
float min_value;
int min_value_index;
float current;
int axis_size = param->axis_size;
int outer_size = param->outer_size;
int inner_size = param->inner_size;
for(int outer = 0; outer < outer_size; ++out... | 910 | 28.387097 | 84 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/argmin/ref_argmin_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,556 | 21.565217 | 93 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/elu/ref_elu_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,275 | 30.121951 | 75 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/elu/ref_elu_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,334 | 31.560976 | 85 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/elu/ref_elu_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,485 | 25.070175 | 74 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/elu/ref_elu_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,173 | 28.35 | 73 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/elu/ref_elu_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,466 | 21.921875 | 83 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/roipooling/ref_roipooling_fp32.c | static int ref_roipooling_fp32(float* featmap, float* roi, float* output, roipooling_ref_param* param)
{
int channel = param->channel;
int feat_size = param->in_h * param->in_w;
int pool_hw = param->out_h * param->out_w;
for(int n = 0; n < param->num_rois; ++n)
{
float* roi_ptr = roi + n * ... | 2,257 | 43.27451 | 102 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/roipooling/ref_roipooling_uint8.c | static int ref_roipooling_uint8(uint8_t* featmap, uint8_t* roi, uint8_t* output, roipooling_ref_param* param)
{
int channel = param->channel;
int feat_size = param->in_h * param->in_w;
int in_size = param->in_h * param->in_w * param->channel;
int out_size = param->out_h * param->out_w * param->channel;
... | 3,227 | 38.851852 | 109 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/roipooling/ref_roipooling_fp16.c | static int ref_roipooling_fp16(__fp16* featmap, __fp16* roi, __fp16* output, roipooling_ref_param* param)
{
int channel = param->channel;
int feat_size = param->in_h * param->in_w;
int pool_hw = param->out_h * param->out_w;
#if !defined(__ARM_ARCH) || __ARM_ARCH < 8
int in_size = param->in_h * param->in... | 3,238 | 38.024096 | 105 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/roipooling/ref_roipooling_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,749 | 21.727273 | 108 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/roipooling/ref_roipooling_int8.c | static int ref_roipooling_int8(int8_t* featmap, int8_t* roi, int8_t* output, roipooling_ref_param* param)
{
int channel = param->channel;
int feat_size = param->in_h * param->in_w;
int in_size = param->in_h * param->in_w * param->channel;
int out_size = param->out_h * param->out_w * param->channel;
... | 3,511 | 37.173913 | 105 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/gru/ref_gru_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 9,741 | 30.224359 | 119 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/sigmoid/ref_sigmoid_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,603 | 21.914286 | 89 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/sigmoid/ref_sigmoid_int8.c |
int ref_sigmoid_int8(int8_t* data, int8_t* out_data, int size, sigmoid_param* param)
{
float* tmp = ( float* )malloc(size * sizeof(float));
float max_val = 0.f;
for(int i = 0; i < size; i++)
{
float real_in = data[i] * param->scale[0];
float real_comp = SIGMOID_MIN(real_in, 30);
... | 719 | 23 | 84 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/sigmoid/ref_sigmoid_fp16.c |
int ref_sigmoid_fp16(__fp16* data, __fp16* out_data, int size, sigmoid_param* param)
{
for(int i = 0; i < size; i++)
{
#if !defined(__ARM_ARCH) || __ARM_ARCH < 8
float realdata = fp16_to_fp32(data[i]);
float realcompt = SIGMOID_MIN(realdata, 30.f);
realcompt = SIGMOID_MAX(realdata, -30... | 597 | 26.181818 | 84 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/shuffle_channel/ref_shuffle_channel_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,085 | 36.448276 | 109 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/shuffle_channel/ref_shuffle_channel_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,086 | 36.482759 | 109 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/shuffle_channel/ref_shuffle_channel_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,083 | 36.37931 | 107 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/shuffle_channel/ref_shuffle_channel_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,088 | 36.551724 | 112 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/l2norm/ref_l2norm_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,522 | 32.108696 | 98 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/l2norm/ref_l2norm_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,591 | 33.608696 | 129 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/l2norm/ref_l2norm_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,459 | 30.73913 | 96 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/l2norm/ref_l2norm_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,516 | 22.703125 | 106 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/l2norm/ref_l2norm_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,048 | 28.695652 | 97 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/pooling/ref_pooling_fp32.c |
static inline float calc_sum(const float* input, int layout, int c, int h, int w, int cur_ch, int start_h, int start_w,
int end_h, int end_w)
{
float sum = 0.0f;
for(int i = start_h; i < end_h; i++)
for(int j = start_w; j < end_w; j++)
{
if(layout == 0)
... | 4,060 | 38.427184 | 120 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/pooling/ref_pooling_uint8.c |
static inline int calc_sum_uint8(const uint8_t* input, int layout, int c, int h, int w, int cur_ch, int start_h,
int start_w, int end_h, int end_w)
{
int sum = 0;
for(int i = start_h; i < end_h; i++)
for(int j = start_w; j < end_w; j++)
{
if(layout =... | 4,327 | 40.219048 | 119 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/pooling/ref_pooling_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,680 | 21.413333 | 92 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/pooling/ref_pooling_int8.c |
static inline int calc_sum_int8(const int8_t* input, int layout, int c, int h, int w, int cur_ch, int start_h,
int start_w, int end_h, int end_w)
{
int sum = 0;
for(int i = start_h; i < end_h; i++)
for(int j = start_w; j < end_w; j++)
{
if(layout == 0... | 4,109 | 38.902913 | 119 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/pooling/ref_pooling_fp16.c |
static inline void calc_sum_fp16(const __fp16* input, __fp16* sum, int layout, int c, int h, int w, int cur_ch,
int start_h, int start_w, int end_h, int end_w)
{
#if !defined(__ARM_ARCH) || __ARM_ARCH < 8
float sum_f = 0.0f;
for(int i = start_h; i < end_h; i++)
for(int ... | 5,412 | 37.664286 | 119 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/dpp/ref_dpp_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 8,290 | 28.091228 | 112 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/dpp/ref_dpp_uint8.c |
int ref_dpp_uint8(const uint8_t* input, const uint8_t* score, const uint8_t* anchor, float* detect_num,
float* detect_class, float* detect_score, float* detect_boxes, dpp_param* param)
{
const int num_classes = param->num_classes + 1;
const int num_boxes = param->num_boxes;
/* transform ... | 1,134 | 38.137931 | 108 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/dpp/ref_dpp_fp16.c |
int ref_dpp_fp16(const __fp16* input, const __fp16* score, const __fp16* anchor, float* detect_num, float* detect_class,
float* detect_score, float* detect_boxes, dpp_param* param)
{
const int num_classes = param->num_classes + 1;
const int num_boxes = param->num_boxes;
/* transform __fp1... | 1,330 | 34.972973 | 120 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/split/ref_split_fp16.c | static int ref_split_fp16(const __fp16* in_data, __fp16** out_data, struct split_param* param)
{
int slice_axis = param->axis;
int num_slices = 1;
int slice_size = 1;
for(int i = 0; i < slice_axis; i++)
{
num_slices = num_slices * param->input_shape.dim[i];
}
for(int i = slice_axis +... | 1,229 | 29 | 102 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/split/ref_split_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,716 | 21.012821 | 76 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/split/ref_split_uint8.c | static int ref_split_uint8(const uint8_t* in_data, uint8_t** out_data, struct split_param* param)
{
int slice_axis = param->axis;
int num_slices = 1;
int slice_size = 1;
for(int i = 0; i < slice_axis; i++)
{
num_slices = num_slices * param->input_shape.dim[i];
}
for(int i = slice_axi... | 1,235 | 29.146341 | 103 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/split/ref_split_int8.c | static int ref_split_int8(const int8_t* in_data, int8_t** out_data, struct split_param* param)
{
int slice_axis = param->axis;
int num_slices = 1;
int slice_size = 1;
for(int i = 0; i < slice_axis; i++)
{
num_slices = num_slices * param->input_shape.dim[i];
}
for(int i = slice_axis +... | 1,229 | 29 | 102 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/split/ref_split_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 2,410 | 32.486111 | 105 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/relu1/ref_relu1_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,187 | 32.942857 | 88 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/relu1/ref_relu1_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,525 | 24.016393 | 93 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/relu1/ref_relu1_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,315 | 29.604651 | 91 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/relu1/ref_relu1_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,093 | 32.151515 | 85 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/relu1/ref_relu1_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,217 | 33.8 | 91 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,086 | 37.821429 | 100 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,087 | 36.517241 | 100 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_kernel.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,965 | 21.860465 | 102 | h |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_uint8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,091 | 36.655172 | 103 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_common.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 11,969 | 39.30303 | 120 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/slice/ref_slice_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,085 | 35.2 | 98 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/clip/ref_clip_fp32.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,294 | 28.431818 | 107 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/clip/ref_clip_int8.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,381 | 31.139535 | 109 | c |
Tengine | Tengine-master/executor/operator/ref/kernel/clip/ref_clip_fp16.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 1,672 | 26.42623 | 109 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.