Browse Source

initial commit for gpu dynamic shape testing op

fix ci

fix ci

minor bug fix
tags/v1.1.0
Peilin Wang 5 years ago
parent
commit
4091a9cd41
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/core/abstract/prim_others.cc

+ 1
- 1
mindspore/core/abstract/prim_others.cc View File

@@ -535,7 +535,7 @@ AbstractBasePtr InferImplGpuConvertToDynamicShape(const AnalysisEnginePtr &, con
ShapeVector input_shape = input->shape()->shape(); ShapeVector input_shape = input->shape()->shape();
int32_t input_rank = input_shape.size(); int32_t input_rank = input_shape.size();
ShapeVector inferred_shape(input_rank, Shape::SHP_ANY); ShapeVector inferred_shape(input_rank, Shape::SHP_ANY);
ShapeVector min_shape = {1};
ShapeVector min_shape(input_rank, 1);
ShapeVector max_shape = input_shape; ShapeVector max_shape = input_shape;


ShapePtr shape = std::make_shared<Shape>(inferred_shape, min_shape, max_shape); ShapePtr shape = std::make_shared<Shape>(inferred_shape, min_shape, max_shape);


Loading…
Cancel
Save