From 6d2704b2279f27b7fa8841ac88ac4f024e3d58c1 Mon Sep 17 00:00:00 2001 From: VectorSL Date: Sat, 30 Oct 2021 10:19:18 +0800 Subject: [PATCH] change test level --- .../kernel_compiler/gpu/other/dynamic_stitch_gpu_kernel.cc | 2 +- tests/st/ops/gpu/test_dynamic_stitch_op.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/backend/kernel_compiler/gpu/other/dynamic_stitch_gpu_kernel.cc b/mindspore/ccsrc/backend/kernel_compiler/gpu/other/dynamic_stitch_gpu_kernel.cc index 61136f55720..9be5a80bea2 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/gpu/other/dynamic_stitch_gpu_kernel.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/gpu/other/dynamic_stitch_gpu_kernel.cc @@ -44,7 +44,7 @@ bool DynamicStitchKernel::Init(const CNodePtr &kernel_node) { auto data_type = AnfAlgo::GetInputDeviceDataType(kernel_node, n_); // Index type is restricted to int32 by kernel prim. size_t index_type_size = sizeof(int); - data_type_size_ = GetDtypeNbyte(TypeIdToString(data_type, false)); + data_type_size_ = GetDtypeNbyte(TypeIdToString(data_type, true)); auto first_data_shape = AnfAlgo::GetInputRealDeviceShapeIfExist(kernel_node, n_); one_data_ele_num_ = first_data_shape[first_data_shape.size() - 1]; for (size_t i = 0; i < n_; i++) { diff --git a/tests/st/ops/gpu/test_dynamic_stitch_op.py b/tests/st/ops/gpu/test_dynamic_stitch_op.py index 0caea452db6..e49ce2f1dea 100644 --- a/tests/st/ops/gpu/test_dynamic_stitch_op.py +++ b/tests/st/ops/gpu/test_dynamic_stitch_op.py @@ -32,7 +32,7 @@ class Net(nn.Cell): def construct(self, indices, data): return self.stitch(indices, data) -@pytest.mark.level1 +@pytest.mark.level0 @pytest.mark.platform_x86_gpu_training @pytest.mark.env_onecard def test_net_int32():