Home
last modified time | relevance | path

Searched refs:AbstractBasePtr (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/third_party/mindspore/mindspore/core/abstract/
Dinfer_functions.h28 AbstractBasePtr InferImplReturn(const AnalysisEnginePtr &, const PrimitivePtr &,
30 AbstractBasePtr InferImplSwitch(const AnalysisEnginePtr &, const PrimitivePtr &,
32 AbstractBasePtr InferImplSwitchLayer(const AnalysisEnginePtr &, const PrimitivePtr &,
34 AbstractBasePtr InferImplIs_(const AnalysisEnginePtr &, const PrimitivePtr &,
36 AbstractBasePtr InferImplIsNot(const AnalysisEnginePtr &, const PrimitivePtr &,
38 AbstractBasePtr InferImplInDict(const AnalysisEnginePtr &, const PrimitivePtr &,
40 AbstractBasePtr InferImplNotInDict(const AnalysisEnginePtr &, const PrimitivePtr &,
42 AbstractBasePtr InferImplIsConstant(const AnalysisEnginePtr &, const PrimitivePtr &,
44 AbstractBasePtr InferImplPooling(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
46 AbstractBasePtr InferImplPoolingGrad(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
[all …]
Dabstract_value.h42 using AbstractBasePtrList = std::vector<AbstractBasePtr>;
75 virtual AbstractBasePtr Clone() const = 0;
82 virtual AbstractBasePtr Broaden() const;
83 virtual AbstractBasePtr Join(const AbstractBasePtr &) { return shared_from_base<AbstractBase>(); } in Join() argument
91 virtual AbstractBasePtr PartialBroaden() const;
122 AbstractBasePtr Clone() const override { in Clone()
125 AbstractBasePtr Broaden() const override;
126 AbstractBasePtr Join(const AbstractBasePtr &other) override;
144 AbstractBasePtr Clone() const override;
145 AbstractBasePtr Broaden() const override { return Clone(); } in Broaden()
[all …]
Dabstract_value.cc31 AnfNodePtr GetTraceNode(const AbstractBasePtr &abs) { in GetTraceNode()
39 inline void AbstractTypeJoinLogging(const AbstractBasePtr &abstract1, const AbstractBasePtr &abstra… in AbstractTypeJoinLogging()
51 inline void TypeJoinLogging(const TypePtr &type1, const TypePtr &type2, const AbstractBasePtr &abst… in TypeJoinLogging()
52 const AbstractBasePtr &abstract2) { in TypeJoinLogging()
64 …inLogging(const BaseShapePtr &shape1, const BaseShapePtr &shape2, const AbstractBasePtr &abstract1, in ShapeJoinLogging()
65 const AbstractBasePtr &abstract2) { in ShapeJoinLogging()
136 AbstractBasePtr AbstractBase::Broaden() const { in Broaden()
137 AbstractBasePtr clone = Clone(); in Broaden()
143 AbstractBasePtr AbstractBase::PartialBroaden() const { return Clone(); } in PartialBroaden()
158 AbstractBasePtr AbstractScalar::Broaden() const { in Broaden()
[all …]
Dprim_others.cc36 AbstractBasePtr InferImplIdentity(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplIdentity()
43 AbstractBasePtr InferImplEnvGetItem(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplEnvGetItem()
76 AbstractBasePtr InferImplEnvSetItem(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplEnvSetItem()
94 AbstractBasePtr InferImplEnvAdd(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplEnvAdd()
101 AbstractBasePtr InferImplMakeRefKey(const AnalysisEnginePtr &, const PrimitivePtr &prim, const Abst… in InferImplMakeRefKey()
115 AbstractBasePtr InferImplMakeRef(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplMakeRef()
126 AbstractBasePtr InferImplGetRefKey(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplGetRefKey()
141 AbstractBasePtr InferImplGetRefValue(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplGetRefValue()
157 AbstractBasePtr InferImplStateSetItem(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplStateSetItem()
170 AbstractBasePtr InferImplDepend(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplDepend()
[all …]
Dprim_structures.cc25 AbstractBasePtr InferImplMakeTuple(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplMakeTuple()
30 AbstractBasePtr InferImplMakeList(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplMakeList()
35 AbstractBasePtr InferImplMakeDict(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplMakeDict()
65 AbstractBasePtr InferImplMakeKwarg(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplMakeKwarg()
81 AbstractBasePtr InferImplExtractKwarg(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplExtractKwarg()
103 AbstractBasePtr InferImplMakeSlice(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplMakeSlice()
159 AbstractBasePtr InferTupleOrListGetItem(const std::string &op_name, const AbstractBasePtrList &args… in InferTupleOrListGetItem()
192 AbstractBasePtr InferTupleOrListSetItem(const std::string &op_name, const AbstractBasePtrList &args… in InferTupleOrListSetItem()
217 AbstractBasePtr InferImplTupleGetItem(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplTupleGetItem()
222 AbstractBasePtr InferImplListGetItem(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplListGetItem()
[all …]
Dutils.h37 AbstractBasePtr AbstractJoin(const AbstractBasePtrList &args_spec_list);
44 AbstractBasePtr SensitivityTransform(const AbstractBasePtr &spec);
65 AbstractBasePtr MakeAbstract(const BaseShapePtr &base_shape, const TypePtr &type);
66 AbstractBasePtr MakeMonadAbstract(const MonadTypePtr &type);
67 AbstractBasePtr MakeAbstractTensor(const ShapePtr &shape, const TypePtr &type);
Dprim_statement.cc25 AbstractBasePtr InferImplReturn(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplReturn()
33 AbstractBasePtr abs_base = args_spec_list[0]; in InferImplReturn()
37 AbstractBasePtr InferImplSwitch(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplSwitch()
69 AbstractBasePtr InferImplSwitchLayer(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplSwitchLayer()
126 AbstractBasePtr InferImplIs_(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplIs_()
142 AbstractBasePtr InferImplIsNot(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplIsNot()
176 AbstractBasePtr InferImplInDict(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplInDict()
183 AbstractBasePtr InferImplNotInDict(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplNotInDict()
190 AbstractBasePtr InferImplIsConstant(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplIsConstant()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/
Dops_front_infer_function.h22 AbstractBasePtr InferImplTypeof(const AnalysisEnginePtr &, const PrimitivePtr &,
24 AbstractBasePtr InferImplHasType(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
26 AbstractBasePtr InferImplBroadcastGradientArgs(const AnalysisEnginePtr &, const PrimitivePtr &primi…
28 AbstractBasePtr InferImplListMap(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
30 AbstractBasePtr InferImplListReduce(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
32 AbstractBasePtr InferImplTupleReversed(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
34 AbstractBasePtr InferImplReduceShape(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
36 AbstractBasePtr InferImplTupleDiv(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
38 AbstractBasePtr InferImplTuple2Array(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
40 AbstractBasePtr InferImplShapeMul(const AnalysisEnginePtr &, const PrimitivePtr &primitive,
[all …]
Dops_front_infer_function.cc47 AbstractBasePtr InferImplTupleOrListEqual(const std::string &op_name, const AbstractBasePtrList &ar… in InferImplTupleOrListEqual()
135 AbstractBasePtr BroadcastGradientArgsDiff(const std::vector<ValuePtr> &x_shape, const std::vector<V… in BroadcastGradientArgsDiff()
169 AbstractBasePtr InferImplTypeof(const AnalysisEnginePtr &, const PrimitivePtr &, in InferImplTypeof()
176 AbstractBasePtr abs_base = args_spec_list[0]; in InferImplTypeof()
182 AbstractBasePtr InferImplHasType(const AnalysisEnginePtr &, const PrimitivePtr &primitive, in InferImplHasType()
215 AbstractBasePtr DoInferReduceShape(const AbstractTuplePtr &x_shape, const ValuePtr &x_shp_value, in DoInferReduceShape()
250 AbstractBasePtr InferImplBroadcastGradientArgs(const AnalysisEnginePtr &, const PrimitivePtr &primi… in InferImplBroadcastGradientArgs()
286 AbstractBasePtr InferImplListMap(const AnalysisEnginePtr &engine, const PrimitivePtr &primitive, in InferImplListMap()
314 AbstractBasePtr InferImplListReduce(const AnalysisEnginePtr &engine, const PrimitivePtr &primitive, in InferImplListReduce()
323 AbstractBasePtr dflt = args_spec_list[2]; in InferImplListReduce()
[all …]
/third_party/mindspore/tests/ut/cpp/pipeline/static_analysis/
Dprim_test.cc137 AbstractBasePtr abstract_v1 = FromValue(v1, false); in TEST_F()
142 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
152 AbstractBasePtr abstract_v1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
153 AbstractBasePtr abstract_u1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
155 AbstractBasePtr abstract_v2 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
156 AbstractBasePtr abstract_u2 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
159 AbstractBasePtr abstract_func = ToAbstract(prim_scalar_add); in TEST_F()
167 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
180 AbstractBasePtr abstract_v1 = FromValue(v1, false); in TEST_F()
181 AbstractBasePtr abstract_v2 = FromValue(v1, false); in TEST_F()
[all …]
Ddata_test.cc50 AbstractBasePtr base1 = std::make_shared<AbstractScalar>(static_cast<int64_t>(1)); in TEST_F()
51 AbstractBasePtr base2 = std::make_shared<AbstractScalar>(static_cast<int64_t>(2)); in TEST_F()
64 AbstractBasePtr abs_f1 = FromValue(prim::kPrimReturn, false); in TEST_F()
69 AbstractBasePtr abs_fg1 = FromValue(fg1, false); in TEST_F()
74 AbstractBasePtr abs_f2 = FromValue(prim::kPrimScalarAdd, false); in TEST_F()
75AbstractBasePtr abs_func_tuple = std::make_shared<AbstractTuple>(AbstractBasePtrList({abs_f1, abs_… in TEST_F()
80AbstractBasePtr abs_func_list = std::make_shared<AbstractList>(AbstractBasePtrList({abs_f1, abs_f2… in TEST_F()
91 AbstractBasePtr s1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
92 AbstractBasePtr s2 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
103 AbstractBasePtr s1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
[all …]
Devaluator_test.cc40 AbstractBasePtr abstract_v1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
41 AbstractBasePtr abstract_v2 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
43 AbstractBasePtr abstract_val = FromValue(static_cast<int64_t>(10), false); in TEST_F()
50 AbstractBasePtr abstract_v1_variant1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
51 AbstractBasePtr abstract_v2_variant1 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
58 AbstractBasePtr abstract_v1_variant2 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
59 AbstractBasePtr abstract_v2_variant2 = FromValue(static_cast<int64_t>(3), false); in TEST_F()
Dstatic_analysis_test.cc38 AbstractBasePtr InferImplScalarAddStub(const AnalysisEnginePtr &engine, const PrimitivePtr &, in InferImplScalarAddStub()
44 AbstractBasePtr abs_base = args_spec_list[0]; in InferImplScalarAddStub()
45 AbstractBasePtr abs_base_1 = args_spec_list[1]; in InferImplScalarAddStub()
55 AbstractBasePtr InferImplReturnStub(const AnalysisEnginePtr &engine, const PrimitivePtr &prim, in InferImplReturnStub()
61 AbstractBasePtr abs_base = args_spec_list[0]; in InferImplReturnStub()
160 AbstractBasePtr abstract_v1 = FromValue(v1, false); in TEST_F()
161 AbstractBasePtr abstract_v2 = FromValue(v2, false); in TEST_F()
167 AbstractBasePtr abs_base_got = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
263 AbstractBasePtr abstract_v1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
265 AbstractBasePtr abs_base_got = engine_->Run(graph_f_, args_spec_list).inferred->abstract(); in TEST_F()
[all …]
/third_party/mindspore/mindspore/core/ir/
Dvalue_extends.cc28 abstract::AbstractBasePtr Scalar::ToAbstract() { in ToAbstract()
32 abstract::AbstractBasePtr StringImm::ToAbstract() { in ToAbstract()
36 abstract::AbstractBasePtr RefKey::ToAbstract() { in ToAbstract()
42 abstract::AbstractBasePtr AnyValue::ToAbstract() { return std::make_shared<abstract::AbstractScalar… in ToAbstract()
44 abstract::AbstractBasePtr ValueTuple::ToAbstract() { in ToAbstract()
53 abstract::AbstractBasePtr ValueList::ToAbstract() { in ToAbstract()
62 abstract::AbstractBasePtr ValueSlice::ToAbstract() { in ToAbstract()
66 abstract::AbstractBasePtr start = start_->ToAbstract(); in ToAbstract()
67 abstract::AbstractBasePtr end = stop_->ToAbstract(); in ToAbstract()
68 abstract::AbstractBasePtr step = step_->ToAbstract(); in ToAbstract()
[all …]
/third_party/mindspore/tests/ut/cpp/abstract/
Dutils_test.cc32 AbstractBasePtr abs_s1 = FromValue(static_cast<int64_t>(1), false); in TEST_F()
33 AbstractBasePtr abs_s2 = FromValue(static_cast<int64_t>(2), false); in TEST_F()
34 AbstractBasePtr abs_s_anything = FromValue(static_cast<int64_t>(2), true); in TEST_F()
37 AbstractBasePtr res_s1 = abs_s1->Join(abs_s2); in TEST_F()
42AbstractBasePtr t1 = std::make_shared<AbstractTuple>(AbstractBasePtrList({abs_s1, abs_s_anything})… in TEST_F()
43AbstractBasePtr t2 = std::make_shared<AbstractTuple>(AbstractBasePtrList({abs_s1, abs_s_anything})… in TEST_F()
44AbstractBasePtr t3 = std::make_shared<AbstractTuple>(AbstractBasePtrList({abs_s_anything, abs_s_an… in TEST_F()
46 AbstractBasePtr res_t1 = t1->Join(t2); in TEST_F()
/third_party/mindspore/tests/ut/cpp/ir/
Dvalue_test.cc44 AbstractBasePtr boola = std::make_shared<AbstractScalar>(true); in TEST_F()
45 AbstractBasePtr ret = boolv->ToAbstract(); in TEST_F()
52 AbstractBasePtr i64a = std::make_shared<AbstractScalar>(static_cast<int64_t>(2)); in TEST_F()
58 AbstractBasePtr f32a = std::make_shared<AbstractScalar>(1.0f); in TEST_F()
64 AbstractBasePtr sa = std::make_shared<AbstractScalar>(std::string("_")); in TEST_F()
70 AbstractBasePtr va = std::make_shared<AbstractScalar>(); in TEST_F()
76AbstractBasePtr ta = std::make_shared<AbstractTuple>(AbstractBasePtrList({boola, i64a, f32a, sa, v… in TEST_F()
/third_party/mindspore/mindspore/core/ops/
Dless_equal.cc29 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
35 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
36 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
46 AbstractBasePtr LessEqualInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in LessEqualInfer()
47 const std::vector<AbstractBasePtr> &input_args) { in LessEqualInfer()
Dhsigmoid.cc24 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
33 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
34 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
43 AbstractBasePtr HSigmoidInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in HSigmoidInfer()
44 const std::vector<AbstractBasePtr> &input_args) { in HSigmoidInfer()
Drsqrt.cc30 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
40 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
41 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
48 AbstractBasePtr RsqrtInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in RsqrtInfer()
49 const std::vector<AbstractBasePtr> &input_args) { in RsqrtInfer()
Dminimum.cc30 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
36 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
41 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
51 AbstractBasePtr MinimumInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in MinimumInfer()
52 const std::vector<AbstractBasePtr> &input_args) { in MinimumInfer()
Drelu6.cc29 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
43 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
45 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
53 AbstractBasePtr ReLU6Infer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in ReLU6Infer()
54 const std::vector<AbstractBasePtr> &input_args) { in ReLU6Infer()
Delu.cc32 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
41 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
42 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
62 AbstractBasePtr EluInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in EluInfer()
63 const std::vector<AbstractBasePtr> &input_args) { in EluInfer()
Dsoft_shrink.cc31 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
42 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
47 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
55 AbstractBasePtr SoftShrinkInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in SoftShrinkInfer()
56 const std::vector<AbstractBasePtr> &input_args) { in SoftShrinkInfer()
/third_party/mindspore/mindspore/core/ops/fusion/
Dadd_fusion.cc39 abstract::ShapePtr InferShape(const PrimitivePtr &primitive, const std::vector<AbstractBasePtr> &in… in InferShape()
45 TypePtr InferType(const PrimitivePtr &prim, const std::vector<AbstractBasePtr> &input_args) { in InferType()
46 …if (std::any_of(input_args.begin(), input_args.end(), [](const AbstractBasePtr &a) { return a == n… in InferType()
56 AbstractBasePtr AddFusionInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, in AddFusionInfer()
57 const std::vector<AbstractBasePtr> &input_args) { in AddFusionInfer()
/third_party/mindspore/tests/ut/cpp/optimizer/
Dclean_test.cc55 AbstractBasePtr para_scalar = std::make_shared<AbstractScalar>(static_cast<int64_t>(0)); in SetUp()
56 AbstractBasePtr para_list = std::make_shared<AbstractList>( in SetUp()
59 AbstractBasePtr para_tuple = std::make_shared<AbstractTuple>(para_elem); in SetUp()
62 AbstractBasePtr app_float = std::make_shared<AbstractScalar>(kFloat64); in SetUp()
63 AbstractBasePtr app_int = std::make_shared<AbstractScalar>(kFloat64); in SetUp()
64 AbstractBasePtr app_list = std::make_shared<AbstractList>( in SetUp()
66AbstractBasePtr app_tuple_inner = std::make_shared<AbstractTuple>(AbstractBasePtrList{app_int, app… in SetUp()
67AbstractBasePtr app_tuple = std::make_shared<AbstractTuple>(AbstractBasePtrList{app_float, app_tup… in SetUp()
110 AbstractBasePtr abs_ptr = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
145 AbstractBasePtr abs_ptr = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
[all …]

12345678910>>...22