Home
last modified time | relevance | path

Searched refs:ShapePtr (Results 1 – 25 of 252) sorted by relevance

1234567891011

/third_party/mindspore/mindspore/lite/tools/optimizer/fisson/
Dnode_out_shapes.cc42 if (utils::isa<abstract::ShapePtr>(in_shape)) { in Run()
43 const auto &shape = in_shape->cast<abstract::ShapePtr>()->shape(); in Run()
58 if (!utils::isa<abstract::ShapePtr>(shape_ptr)) { in Run()
62 output_shapes.push_back(shape_ptr->cast<abstract::ShapePtr>()->shape()); in Run()
64 } else if (utils::isa<abstract::ShapePtr>(out_shape)) { in Run()
65 const auto &shape = out_shape->cast<abstract::ShapePtr>()->shape(); in Run()
/third_party/mindspore/mindspore/core/abstract/
Dutils.h35 ShapePtr ShapeJoin(const ShapePtr &shape1, const ShapePtr &shape2);
58 ShapePtr GetBroadcastShape(const std::string &op, const AbstractTensorPtr &tensor_x, const Abstract…
67 AbstractBasePtr MakeAbstractTensor(const ShapePtr &shape, const TypePtr &type);
Dutils.cc55 ShapePtr CalculateDynamicShape(const ShapePtr &shape1, const ShapePtr &shape2, const ShapeVector &d… in CalculateDynamicShape()
104 ShapePtr ShapeJoin(const ShapePtr &shape1, const ShapePtr &shape2) { in ShapeJoin()
344 AbstractBasePtr MakeAbstractTensor(const ShapePtr &shape, const TypePtr &type) { in MakeAbstractTensor()
385 auto shape = base_shape->cast<ShapePtr>(); in MakeAbstract()
/third_party/mindspore/tests/ut/cpp/ops/
Dtest_ops_batch_norm.cc52 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
56 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
59 auto shape3 = shape_vec[2]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
62 auto shape4 = shape_vec[3]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
65 auto shape5 = shape_vec[4]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_batch_norm_grad.cc56 auto shape0 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
59 auto shape1 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
62 auto shape2 = shape_vec[2]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
65 auto shape3 = shape_vec[3]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
68 auto shape4 = shape_vec[4]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_detection_post_process.cc50 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
55 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
59 auto shape3 = shape_vec[2]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
63 auto shape4 = shape_vec[3]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_softmax.cc49 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
79 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
109 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
Dtest_ops_lsh_projection.cc49 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
78 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
109 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
Dtest_ops_full_connection.cc48 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
79 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
109 auto shape = shape_ptr->cast<abstract::ShapePtr>(); in TEST_F()
Dtest_ops_unpack.cc51 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
54 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_unstack.cc51 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
54 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_custom_predict.cc52 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
55 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_merge.cc53 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
57 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_hashtable_lookup.cc54 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
56 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_layer_norm_beta_gamma_backprop_v2.cc55 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
58 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
Dtest_ops_topk.cc64 auto shape1 = shape_vec[0]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
67 auto shape2 = shape_vec[1]->cast<abstract::ShapePtr>()->shape(); in TEST_F()
/third_party/mindspore/mindspore/core/ir/
Danf_utils.cc20 bool AnfUtils::IsShapeDynamic(const abstract::ShapePtr &shape) { in IsShapeDynamic()
36 …if (base_shape->isa<abstract::Shape>() && IsShapeDynamic(base_shape->cast<abstract::ShapePtr>())) { in IsNodeOutputDynamicShape()
43 if (b_shape->isa<abstract::Shape>() && IsShapeDynamic(b_shape->cast<abstract::ShapePtr>())) { in IsNodeOutputDynamicShape()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dreshape_eliminate.h34 using abstract::ShapePtr;
60 auto elements = tgt_shape->cast<ShapePtr>(); in operator()
61 auto shape = src_shape->cast<ShapePtr>(); in operator()
/third_party/mindspore/mindspore/core/ops/
Daddn.cc28 abstract::ShapePtr AddNInferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr>… in AddNInferShape()
44 const auto &shape_vec = shape->cast<abstract::ShapePtr>()->shape(); in AddNInferShape()
45 const auto &shape_0_vec = shape_0->cast<abstract::ShapePtr>()->shape(); in AddNInferShape()
Dleaky_relu.cc22 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
25 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()
Drelu.cc30 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
37 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()
Drelu6.cc29 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
38 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()
Dprelu.cc23 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
38 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()
/third_party/mindspore/mindspore/core/ops/grad/
Drelu_grad_v2.cc30 abstract::ShapePtr InferShape(const std::vector<AbstractBasePtr> &input_args) { in InferShape()
33 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()
Drelu_grad.cc30 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
43 auto shape_element = x->cast<abstract::ShapePtr>(); in InferShape()

1234567891011