From f2d1e3b34d0b6bf6458acba225658284bb414bcf Mon Sep 17 00:00:00 2001 From: Yulv-git Date: Sat, 28 May 2022 11:02:34 +0800 Subject: [PATCH] Fix some typos. --- common/gcl/include/platform.h | 2 +- .../tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A55.cpp | 2 +- .../tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A76.cpp | 2 +- third_party/proto/caffe.proto | 2 +- third_party/proto/onnx.proto | 2 +- training/src/tests/tests/layers/Test_Layer_LSTMCell.cpp | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common/gcl/include/platform.h b/common/gcl/include/platform.h index dd07c7bc..f2f0f136 100644 --- a/common/gcl/include/platform.h +++ b/common/gcl/include/platform.h @@ -169,7 +169,7 @@ inline EE list_platform_info(Platform p) * @brief get devices in platform, and allocate space for storing devices * @warning please free space of devices allocated in this function * - * @param p input, specify platform, device will be retrived from this platform + * @param p input, specify platform, device will be retrieved from this platform * @param type input, specify device type * @param num_devices output, return device number with type in platform p * @param devices output, return devices diff --git a/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A55.cpp b/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A55.cpp index 83750188..bb117808 100644 --- a/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A55.cpp +++ b/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A55.cpp @@ -34,7 +34,7 @@ EE convolution_winograd_A55(TensorDesc inputDesc, UNUSED(biasDesc); UNUSED(tmpBytes); - // not truely one_step. Compute hw12*(6*6)*ic at one time. + // not truly one_step. Compute hw12*(6*6)*ic at one time. DataType idt, fdt, odt; DataFormat idf, fdf, odf; U32 in, ic, ih, iw; diff --git a/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A76.cpp b/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A76.cpp index ca160982..910f5831 100644 --- a/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A76.cpp +++ b/compute/tensor/src/cpu/arm/int8/v8.2/convolution_winograd_A76.cpp @@ -34,7 +34,7 @@ EE convolution_winograd_A76(TensorDesc inputDesc, UNUSED(biasDesc); UNUSED(tmpBytes); - // not truely one_step. Compute hw12*(6*6)*ic at one time. + // not truly one_step. Compute hw12*(6*6)*ic at one time. DataType idt, fdt, odt; DataFormat idf, fdf, odf; U32 in, ic, ih, iw; diff --git a/third_party/proto/caffe.proto b/third_party/proto/caffe.proto index 68ebe74b..df968bf5 100644 --- a/third_party/proto/caffe.proto +++ b/third_party/proto/caffe.proto @@ -576,7 +576,7 @@ message ResizeParameter { CUBIC = 4; LANCZOS4 = 5; } - //interpolation for for resizing + //interpolation for resizing repeated Interp_mode interp_mode = 7; } diff --git a/third_party/proto/onnx.proto b/third_party/proto/onnx.proto index c90fb042..a81f8233 100644 --- a/third_party/proto/onnx.proto +++ b/third_party/proto/onnx.proto @@ -61,7 +61,7 @@ enum Version { // The version field is always serialized and we will use it to store the // version that the graph is generated from. This helps us set up version // control. - // For the IR, we are using simple numbers starting with with 0x00000001, + // For the IR, we are using simple numbers starting with 0x00000001, // which was the version we published on Oct 10, 2017. IR_VERSION_2017_10_10 = 0x0000000000000001; diff --git a/training/src/tests/tests/layers/Test_Layer_LSTMCell.cpp b/training/src/tests/tests/layers/Test_Layer_LSTMCell.cpp index bd80e2b5..0a5a65c9 100644 --- a/training/src/tests/tests/layers/Test_Layer_LSTMCell.cpp +++ b/training/src/tests/tests/layers/Test_Layer_LSTMCell.cpp @@ -927,7 +927,7 @@ TEST(TestLSTMCell, SingleParamsLoadedNoBiasForgetForwardUnit) /// 3. If we need two tensors ih and hh, we have to split the weights tensor into 2 parts the weights tensor (axis=0). /// They must be dumped in transposed mode. /// weights_ih, weights_hh = np.split(weights, [input_size], axis=0) - /// 4. If we need one tensor, we have to dump concatenate weights in in transposed mode. + /// 4. If we need one tensor, we have to dump concatenate weights in transposed mode. // Test parameters const auto eps_rel = 1e-5_dt; @@ -1007,7 +1007,7 @@ TEST(TestLSTMCell, SingleParamsLoadedWithBiasForgetForwardUnit) /// 3. If we need two tensors ih and hh, we have to split the weights tensor into 2 parts the weights tensor (axis=0). /// They must be dumped in transposed mode. /// weights_ih, weights_hh = np.split(weights, [input_size], axis=0) - /// 4. If we need one tensor, we have to dump concatenate weights in in transposed mode. + /// 4. If we need one tensor, we have to dump concatenate weights in transposed mode. // Test parameters const auto eps_rel = 1e-5_dt;