diff --git a/impl/math/exp/exp_common_impl.h b/impl/math/exp/exp_common_impl.h index b59507534f991a48663c9859d9bc85b04abb60e2..7245c8f53d4e2d57d8a4593f75660e1519bedbbc 100644 --- a/impl/math/exp/exp_common_impl.h +++ b/impl/math/exp/exp_common_impl.h @@ -167,8 +167,8 @@ __aicore__ inline void ExpHighPrecisionExec(const ExpParams& params, uint PipeBarrier(); // FloorXPow: (x ^ (n+1)) / n! * [1 / (n+1)] -> (x ^ (n+1)) / (n+1)! - Muls(params.tempTensorFloorXPow, params.tempTensorFloorXPow, float(1.0) / float(i), - MASK_PLACEHOLDER, 1, unaryParams); + Muls(params.tempTensorFloorXPow, params.tempTensorFloorXPow, + static_cast(1.0) / static_cast(i), MASK_PLACEHOLDER, 1, unaryParams); PipeBarrier(); // Res = Res + FloorXPow diff --git a/impl/normalization/deepnorm/deepnorm_common_impl.h b/impl/normalization/deepnorm/deepnorm_common_impl.h index dd201bb934e741864aa268700da1270afc3f11d9..829fb3f73cc195bb351b72239409efcd47809550 100644 --- a/impl/normalization/deepnorm/deepnorm_common_impl.h +++ b/impl/normalization/deepnorm/deepnorm_common_impl.h @@ -373,7 +373,7 @@ __aicore__ inline void GetDeepNormOutputPre(const LocalTensor& xSubMean, PipeBarrier(); // all 1 tensor - Duplicate(params.tempTensorC, float(1.0), 1, 1, 1, 8); + Duplicate(params.tempTensorC, static_cast(1.0), 1, 1, 1, 8); PipeBarrier(); // SqrtX = sqrt(addX) diff --git a/impl/normalization/layernorm/layernorm_common_impl.h b/impl/normalization/layernorm/layernorm_common_impl.h index 817755ea8c00b9a114d95650b7ae9905313de240..037a031fdf939e0c8e59350f03dced56a2a1403b 100644 --- a/impl/normalization/layernorm/layernorm_common_impl.h +++ b/impl/normalization/layernorm/layernorm_common_impl.h @@ -234,7 +234,7 @@ __aicore__ inline void ComputeMeanVariance(const LocalTensor& outputMean, eventId = GetTPipePtr()->FetchEventID(HardEvent::S_V); for (uint32_t j = 0; j < tiling.aCurLength; j++) { - float scalar = float(-1) * outputMean.GetValue(j); + float scalar = static_cast(-1) * outputMean.GetValue(j); SetFlag(eventId); WaitFlag(eventId); Adds(params.tempTensorA[j * para.rLengthWithPadding], params.tempTensorA[j * para.rLengthWithPadding], diff --git a/impl/normalization/layernorm/layernorm_tiling_impl.cpp b/impl/normalization/layernorm/layernorm_tiling_impl.cpp index 9ed152edee305113df41a3e3d5a6ccb557b26068..678dd4a3de1cc178e87c167121a405714c55c847 100644 --- a/impl/normalization/layernorm/layernorm_tiling_impl.cpp +++ b/impl/normalization/layernorm/layernorm_tiling_impl.cpp @@ -317,7 +317,7 @@ void GetLayerNormNDTilingInfo(const ge::Shape& srcShape, const uint32_t stackBuf const uint32_t arCurLength = inputRoundSize; const uint32_t aCurLength = meanVarRoundSize; - const float rValueBack = float(1) / static_cast(rLength); + const float rValueBack = static_cast(1) / static_cast(rLength); tiling.set_aLength(aLength); tiling.set_rLength(rLength); diff --git a/impl/normalization/normalize/normalize_common_impl.h b/impl/normalization/normalize/normalize_common_impl.h index 737da6c9821d4b0358d0eabf90c761c9db737e43..ce751300058c0abe3273a7460c0a046f39ddb582 100644 --- a/impl/normalization/normalize/normalize_common_impl.h +++ b/impl/normalization/normalize/normalize_common_impl.h @@ -90,7 +90,7 @@ __aicore__ inline void GetNormalizeOutputRstd(const LocalTensor& dstRstd, Adds(dstRstd, srcVar, epsilon, MASK_PLACEHOLDER, 1, unaryParams); PipeBarrier(); // 2. Rsqrt(AddsX) = 1 / Sqrt(AddsX) ==> dstRstd - Duplicate(tmpTensor.tempTensorA, float(1), 1, 1, DEFAULT_BLK_STRIDE, DEFAULT_REPEAT_STRIDE); + Duplicate(tmpTensor.tempTensorA, static_cast(1), 1, 1, DEFAULT_BLK_STRIDE, DEFAULT_REPEAT_STRIDE); PipeBarrier(); Sqrt(dstRstd, dstRstd, MASK_PLACEHOLDER, 1, unaryParams); PipeBarrier(); diff --git a/impl/pad/pad/pad_base_impl.h b/impl/pad/pad/pad_base_impl.h index ff6bf160164d66c42fd3e6f27a2c17160c62a180..db9093685e5927b4f6332223f771c51c70d49241 100644 --- a/impl/pad/pad/pad_base_impl.h +++ b/impl/pad/pad/pad_base_impl.h @@ -20,15 +20,6 @@ #include "kernel_pop_stack_buffer.h" #include "kernel_tiling/kernel_tiling.h" -#if __CCE_AICORE__ == 100 -#include "dav_c100/kernel_operator_vec_transpose_impl.h" -#elif __CCE_AICORE__ == 200 -#include "dav_m200/kernel_operator_vec_transpose_impl.h" -#elif __CCE_AICORE__ == 220 -#include "dav_c220/kernel_operator_vec_transpose_impl.h" -#include "dav_c220/kernel_operator_vec_gather_mask_impl.h" -#endif - namespace AscendC { template __aicore__ inline void DuplicateLastDimImpl(const LocalTensor &dstTensor, const LocalTensor &srcTensor, diff --git a/impl/sort/topk/topk_tiling_impl.cpp b/impl/sort/topk/topk_tiling_impl.cpp index ffb62520f9131942e034cd8ae73ea4842c4f8a9a..2952d7adfed84f62ee23f755817cd41895b3bfde 100644 --- a/impl/sort/topk/topk_tiling_impl.cpp +++ b/impl/sort/topk/topk_tiling_impl.cpp @@ -379,9 +379,9 @@ void CheckTopKHostCommon(const char *apiName, const char *hostFuncName, "[%s][%s] The length of the outter axis must be greater than 0!", apiName, hostFuncName); uint64_t ubSize = 0; ascendcPlatform.GetCoreMemSize(platform_ascendc::CoreMemType::UB, ubSize); - ASCENDC_HOST_ASSERT(uint64_t(inner * outter * dataTypeSize) <= ubSize, return, + ASCENDC_HOST_ASSERT(static_cast(inner * outter * dataTypeSize) <= ubSize, return, "[%s][%s] The size of srcShape is %luB, should be less than UB size.", apiName, hostFuncName, - uint64_t(inner * outter * dataTypeSize)); + static_cast(inner * outter * dataTypeSize)); ASCENDC_HOST_ASSERT(dataTypeSize == TOPK_HALF_SIZE || dataTypeSize == TOPK_FLOAT_SIZE, return, "[%s][%s] Type size %u is unsupported!", apiName, hostFuncName, dataTypeSize); return; diff --git a/impl/transpose/confusion_transpose/confusion_transpose_base_0213.h b/impl/transpose/confusion_transpose/confusion_transpose_base_0213.h index 8f09ea492347eb35a69fd8353969da4b9253f5b1..38da6099e0884f2754f2013283ad1ccbcf452c5d 100644 --- a/impl/transpose/confusion_transpose/confusion_transpose_base_0213.h +++ b/impl/transpose/confusion_transpose/confusion_transpose_base_0213.h @@ -19,13 +19,6 @@ #include "kernel_pop_stack_buffer.h" #include "kernel_tiling/kernel_tiling.h" -#if __CCE_AICORE__ == 100 -#include "dav_c100/kernel_operator_vec_transpose_impl.h" -#elif __CCE_AICORE__ == 200 -#include "dav_m200/kernel_operator_vec_transpose_impl.h" -#elif __CCE_AICORE__ == 220 -#include "dav_c220/kernel_operator_vec_transpose_impl.h" -#endif namespace AscendC { const uint32_t CUBE_HALF_SIZE = CUBE_MAX_SIZE / 2; diff --git a/tests/activation/gelu/test_operator_fast_gelu.cpp b/tests/activation/gelu/test_operator_fast_gelu.cpp index ec97dba56d061217fc444e4bd25bab50f1ea6932..d15dcfb2c4a31bd9e373677a88393ab42cce4fee 100644 --- a/tests/activation/gelu/test_operator_fast_gelu.cpp +++ b/tests/activation/gelu/test_operator_fast_gelu.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/activation/gelu/test_operator_fast_gelu_v2.cpp b/tests/activation/gelu/test_operator_fast_gelu_v2.cpp index f4d98b554d2c2d9ab61a536a195eeed455b6023d..6974cdd1c8eacffe24fcac855d8c0337a517ed13 100644 --- a/tests/activation/gelu/test_operator_fast_gelu_v2.cpp +++ b/tests/activation/gelu/test_operator_fast_gelu_v2.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/activation/gelu/test_operator_gelu.cpp b/tests/activation/gelu/test_operator_gelu.cpp index 387727a056f0584137ba1e6466d7dbb1807d2ba2..c668d6597bc01a76add3d9e85a9e132575bd8828 100644 --- a/tests/activation/gelu/test_operator_gelu.cpp +++ b/tests/activation/gelu/test_operator_gelu.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/activation/silu/test_operator_silu.cpp b/tests/activation/silu/test_operator_silu.cpp index a001b04e73d6f689984a7ca600b8d143c9f95387..ad7eeb158f86d04cb2afbc619a9715162afa9ac8 100644 --- a/tests/activation/silu/test_operator_silu.cpp +++ b/tests/activation/silu/test_operator_silu.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/activation/softmax/test_operator_softmax_v220.cpp b/tests/activation/softmax/test_operator_softmax_v220.cpp index 1261bd042ad621903ef3f8abe3d84aaaf0b9fc9c..c7eacc538ecfb0ac2c88cdf6e36cd7135dbf8b70 100644 --- a/tests/activation/softmax/test_operator_softmax_v220.cpp +++ b/tests/activation/softmax/test_operator_softmax_v220.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include diff --git a/tests/activation/softmax/test_operator_softmax_v300.cpp b/tests/activation/softmax/test_operator_softmax_v300.cpp index d154acdf180060c01319396dd77b909bc2ee26a4..c8e2e781c7164dd4414e97c61ed576e74ff19fd3 100644 --- a/tests/activation/softmax/test_operator_softmax_v300.cpp +++ b/tests/activation/softmax/test_operator_softmax_v300.cpp @@ -3,7 +3,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include diff --git a/tests/activation/softmax/test_operator_softmaxflashv3_v220.cpp b/tests/activation/softmax/test_operator_softmaxflashv3_v220.cpp index c93705e4926940553be53bd8e7c0b9ee402638cb..84f0888f9c907f1c8d6391470f5e83aa0fe9ffc1 100644 --- a/tests/activation/softmax/test_operator_softmaxflashv3_v220.cpp +++ b/tests/activation/softmax/test_operator_softmaxflashv3_v220.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include diff --git a/tests/activation/swish/test_operator_swish.cpp b/tests/activation/swish/test_operator_swish.cpp index 9e9103f3cd5519a781e54d18e6756975a75f4ea0..e37a5b6612c488535dc1e24f7d7ff7f9565fb765 100644 --- a/tests/activation/swish/test_operator_swish.cpp +++ b/tests/activation/swish/test_operator_swish.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/common/k3_pvwrap.h b/tests/common/k3_pvwrap.h index 4a34c8d9b686b6de76eb1988611a4e1355600c9e..69f61199697714e118891de0bf49a06616a57d9d 100644 --- a/tests/common/k3_pvwrap.h +++ b/tests/common/k3_pvwrap.h @@ -30,7 +30,7 @@ inline int svSize(svOpenArrayHandle buf, uint32_t size) // Constants const uint32_t PV_MAX_STEP = 1000000; const uint32_t PV_STEP_TIME_OUT = 1000; -const uint64_t PV_LAST_STEP = uint64_t(-1); +const uint64_t PV_LAST_STEP = static_cast(-1); // ------------------------------------------------------------------------------------------------- // APIs for SV, assume no multi-core, so no core_id arg needed diff --git a/tests/filter/dropout/test_operator_dropout.cpp b/tests/filter/dropout/test_operator_dropout.cpp index 7e7b9f41252a6341455e5fe70a51ede1f6e5309f..32dd61b41013286ea126f13ac5a0d7dd1fb1315a 100644 --- a/tests/filter/dropout/test_operator_dropout.cpp +++ b/tests/filter/dropout/test_operator_dropout.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/index/arithprogression/test_operator_arithprogression.cpp b/tests/index/arithprogression/test_operator_arithprogression.cpp index ca52d8a259cce0e2604ac1478a1a2e3c02441c64..9ac8d53f59e46e767d4ef600b51a272cf4b84a8b 100644 --- a/tests/index/arithprogression/test_operator_arithprogression.cpp +++ b/tests/index/arithprogression/test_operator_arithprogression.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/math/exp/test_operator_exphighprecision.cpp b/tests/math/exp/test_operator_exphighprecision.cpp index 882199b26e51200bc12152568d5b1e52212662b7..e0bbe7a523c90aca86eba7455af634cf719380f0 100644 --- a/tests/math/exp/test_operator_exphighprecision.cpp +++ b/tests/math/exp/test_operator_exphighprecision.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" diff --git a/tests/normalization/batchnorm/test_operator_batchnorm.cpp b/tests/normalization/batchnorm/test_operator_batchnorm.cpp index e255c92698306af584bc1ba0cc8b7c58ead086ec..facee7f5e7df1fa866da2428d951fddcfa3dd670 100644 --- a/tests/normalization/batchnorm/test_operator_batchnorm.cpp +++ b/tests/normalization/batchnorm/test_operator_batchnorm.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/deepnorm/test_operator_deepnorm.cpp b/tests/normalization/deepnorm/test_operator_deepnorm.cpp index bbc72b7f5227cac56de1d9388b540eb27ae73b2d..c6c1e9434a4fed95113083bceed6e68bfd001552 100644 --- a/tests/normalization/deepnorm/test_operator_deepnorm.cpp +++ b/tests/normalization/deepnorm/test_operator_deepnorm.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" diff --git a/tests/normalization/groupnorm/test_operator_groupnorm.cpp b/tests/normalization/groupnorm/test_operator_groupnorm.cpp index 7dd522b972f24d7d4f178682dd2f454e4547dbcb..71f98669f6fd19bec6483fda46ef9001c95e2c13 100644 --- a/tests/normalization/groupnorm/test_operator_groupnorm.cpp +++ b/tests/normalization/groupnorm/test_operator_groupnorm.cpp @@ -15,7 +15,7 @@ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/layernorm/test_operator_layernorm.cpp b/tests/normalization/layernorm/test_operator_layernorm.cpp index 5875945b7fe71017d333fb3123530abe89257c8f..a3bc7836a767bb7dd097935fc32b3e4894ba57eb 100644 --- a/tests/normalization/layernorm/test_operator_layernorm.cpp +++ b/tests/normalization/layernorm/test_operator_layernorm.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/layernorm/test_operator_layernormgrad.cpp b/tests/normalization/layernorm/test_operator_layernormgrad.cpp index fab91ded70bd33167e92144e1895067c433b7541..81765f38a107560a4ae16e8f73eab92a01561ea6 100644 --- a/tests/normalization/layernorm/test_operator_layernormgrad.cpp +++ b/tests/normalization/layernorm/test_operator_layernormgrad.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/layernorm/test_operator_layernormgradbeta.cpp b/tests/normalization/layernorm/test_operator_layernormgradbeta.cpp index 21dd3578e933f8f8532571601022a757841441fc..30d827cb4493f7cd7418bfef2cf8abd9fe89d16d 100644 --- a/tests/normalization/layernorm/test_operator_layernormgradbeta.cpp +++ b/tests/normalization/layernorm/test_operator_layernormgradbeta.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/layernormV2/test_operator_layernormV2.cpp b/tests/normalization/layernormV2/test_operator_layernormV2.cpp index 0af89bd937016bc9d6292b3105f5ccb0e851be3e..fe25a875c04fac7e7ecc5b2eb4e5186db2f0d019 100644 --- a/tests/normalization/layernormV2/test_operator_layernormV2.cpp +++ b/tests/normalization/layernormV2/test_operator_layernormV2.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/normalize/test_operator_normalize.cpp b/tests/normalization/normalize/test_operator_normalize.cpp index fd975d90e6280eafe5326c407f9b53c6bd6c3253..17751b1d2b5a3e3f52f5f5e0e5aeb80c97ed31c5 100644 --- a/tests/normalization/normalize/test_operator_normalize.cpp +++ b/tests/normalization/normalize/test_operator_normalize.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/rmsnorm/test_operator_rmsnorm.cpp b/tests/normalization/rmsnorm/test_operator_rmsnorm.cpp index 42d7072f77d66d95777e09a63ed4a4d94e2896fb..6cf9fb734b8288cd6e7658e14b79552baa6700f9 100644 --- a/tests/normalization/rmsnorm/test_operator_rmsnorm.cpp +++ b/tests/normalization/rmsnorm/test_operator_rmsnorm.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" using namespace std; diff --git a/tests/normalization/welfordfinalize/test_operator_welfordfinalize.cpp b/tests/normalization/welfordfinalize/test_operator_welfordfinalize.cpp index c5b08ec14784671fd8c33d8ef78da54de7f2366e..1411599de9f87ad10ec3f6fb26f9104701a513e2 100644 --- a/tests/normalization/welfordfinalize/test_operator_welfordfinalize.cpp +++ b/tests/normalization/welfordfinalize/test_operator_welfordfinalize.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include using namespace std; diff --git a/tests/normalization/welfordupdate/test_operator_welfordupdate.cpp b/tests/normalization/welfordupdate/test_operator_welfordupdate.cpp index 654a40a667a8231fb4a12c60adfcbaf5dd40a81c..8833226c845bf6d758bfe39abe025742644ca1e5 100644 --- a/tests/normalization/welfordupdate/test_operator_welfordupdate.cpp +++ b/tests/normalization/welfordupdate/test_operator_welfordupdate.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include using namespace std; diff --git a/tests/pad/pad/test_operator_pad.cpp b/tests/pad/pad/test_operator_pad.cpp index 8bed6873f30260fd17816b70a1825cb3c9a05b17..f7e4e51c3d5eaa455c5692b8e8ca9cb29ba107da 100644 --- a/tests/pad/pad/test_operator_pad.cpp +++ b/tests/pad/pad/test_operator_pad.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include diff --git a/tests/quantization/antiquant/test_ascend_antiquant.cpp b/tests/quantization/antiquant/test_ascend_antiquant.cpp index 105d9151283832a4a330ea8a35e8d870a0e1a398..af9b3a6c882c62f0318fbb4ee6e2385dc05509c1 100644 --- a/tests/quantization/antiquant/test_ascend_antiquant.cpp +++ b/tests/quantization/antiquant/test_ascend_antiquant.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" diff --git a/tests/quantization/antiquant/test_ascend_antiquant_scalar.cpp b/tests/quantization/antiquant/test_ascend_antiquant_scalar.cpp index f631cf0e31203ba3e6307d60cefc5843da5abb85..1128ed3d8d1f9a095bc81cf01ce66c34408f8ca0 100644 --- a/tests/quantization/antiquant/test_ascend_antiquant_scalar.cpp +++ b/tests/quantization/antiquant/test_ascend_antiquant_scalar.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" diff --git a/tests/quantization/antiquant/test_ascend_antiquant_weight.cpp b/tests/quantization/antiquant/test_ascend_antiquant_weight.cpp index d66a237374e4205ea6b590e98e738b2ad3bc9da5..1ebd44718ab6fd3394fc7cd12f315ccba81a933d 100644 --- a/tests/quantization/antiquant/test_ascend_antiquant_weight.cpp +++ b/tests/quantization/antiquant/test_ascend_antiquant_weight.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_operator_intf.h" #include "kernel_utils.h" diff --git a/tests/quantization/antiquant/test_ascend_antiquant_weight_scalar.cpp b/tests/quantization/antiquant/test_ascend_antiquant_weight_scalar.cpp index 571c86edb00d98681df8db35ce553bcf87d52914..d4641a89de006e054a7a4a8559298614256cf4ba 100644 --- a/tests/quantization/antiquant/test_ascend_antiquant_weight_scalar.cpp +++ b/tests/quantization/antiquant/test_ascend_antiquant_weight_scalar.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" diff --git a/tests/reduce/mean/test_operator_mean.cpp b/tests/reduce/mean/test_operator_mean.cpp index eb96f1846f6254d1555e14431f06b7cb502963e3..cf457c2fb7ae83c9a1d5c18706c3b4c21374a222 100644 --- a/tests/reduce/mean/test_operator_mean.cpp +++ b/tests/reduce/mean/test_operator_mean.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include diff --git a/tests/reduce/sum/test_operator_sum.cpp b/tests/reduce/sum/test_operator_sum.cpp index 015bcf708c1472e8d0cf839e5c08c45d6eeec7f3..6ca219166e4b32853586f090f8e0f2db09e4169f 100644 --- a/tests/reduce/sum/test_operator_sum.cpp +++ b/tests/reduce/sum/test_operator_sum.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include diff --git a/tests/sort/topk/test_operator_topk.cpp b/tests/sort/topk/test_operator_topk.cpp index a1f80967198878df07c453eb10f2e1f2ecccc334..ab8a14f6e0cadf4e176031104a94a9dc7366e81c 100644 --- a/tests/sort/topk/test_operator_topk.cpp +++ b/tests/sort/topk/test_operator_topk.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include using namespace std; diff --git a/tests/transpose/confusion_transpose/test_operator_confusion_transpose.cpp b/tests/transpose/confusion_transpose/test_operator_confusion_transpose.cpp index c0624cc1485f1048d5b197d97b4ee116fcdbd38e..f3aa42cd9f07db2927ec0cf7cc95689247a7ef8e 100644 --- a/tests/transpose/confusion_transpose/test_operator_confusion_transpose.cpp +++ b/tests/transpose/confusion_transpose/test_operator_confusion_transpose.cpp @@ -9,7 +9,7 @@ */ #include #define private public -#define protect public +#define protected public #include "kernel_operator.h" #include "kernel_utils.h" #include