From 4091a9cd41e7d2d979e1eaef52677d0e4fb03e5b Mon Sep 17 00:00:00 2001 From: Peilin Wang Date: Thu, 19 Nov 2020 10:42:33 -0500 Subject: [PATCH] initial commit for gpu dynamic shape testing op fix ci fix ci minor bug fix --- mindspore/core/abstract/prim_others.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/core/abstract/prim_others.cc b/mindspore/core/abstract/prim_others.cc index 7fe4be12d9..6a2da572c1 100644 --- a/mindspore/core/abstract/prim_others.cc +++ b/mindspore/core/abstract/prim_others.cc @@ -535,7 +535,7 @@ AbstractBasePtr InferImplGpuConvertToDynamicShape(const AnalysisEnginePtr &, con ShapeVector input_shape = input->shape()->shape(); int32_t input_rank = input_shape.size(); ShapeVector inferred_shape(input_rank, Shape::SHP_ANY); - ShapeVector min_shape = {1}; + ShapeVector min_shape(input_rank, 1); ShapeVector max_shape = input_shape; ShapePtr shape = std::make_shared(inferred_shape, min_shape, max_shape);