/third_party/mindspore/mindspore/core/base/ |
D | core_ops.h | 107 inline const PrimitivePtr kPrimGetNext = std::make_shared<Primitive>(kGetNext); 110 inline const PrimitivePtr kPrimScalarAdd = std::make_shared<Primitive>(kScalarAdd); 111 inline const PrimitivePtr kPrimScalarSub = std::make_shared<Primitive>(kScalarSub); 112 inline const PrimitivePtr kPrimScalarMul = std::make_shared<Primitive>(kScalarMul); 113 inline const PrimitivePtr kPrimScalarDiv = std::make_shared<Primitive>(kScalarDiv); 114 inline const PrimitivePtr kPrimScalarFloordiv = std::make_shared<Primitive>(kScalarFloordiv); 115 inline const PrimitivePtr kPrimScalarMod = std::make_shared<Primitive>(kScalarMod); 116 inline const PrimitivePtr kPrimScalarPow = std::make_shared<Primitive>(kScalarPow); 117 inline const PrimitivePtr kPrimScalarTrunc = std::make_shared<Primitive>(kScalarTrunc); 118 inline const PrimitivePtr kPrimScalarFloor = std::make_shared<Primitive>(kScalarFloor); [all …]
|
/third_party/mindspore/mindspore/ops/ |
D | functional.py | 22 from .primitive import Primitive 28 typeof = Primitive('typeof') 29 hastype = Primitive('hastype') 32 isconstant = Primitive('is_constant') 174 tuple_setitem = Primitive('tuple_setitem') 175 tuple_getitem = Primitive(_constants.kTupleGetItem) 176 list_getitem = Primitive('list_getitem') 177 list_setitem = Primitive('list_setitem') 178 dict_getitem = Primitive('dict_getitem') 179 dict_setitem = Primitive('dict_setitem') [all …]
|
/third_party/mindspore/tests/ut/cpp/operator/ |
D | ops_test.cc | 38 auto prim = std::make_shared<Primitive>(prim::kScalarAdd); in TEST_F() 43 auto prim = std::make_shared<Primitive>(prim::kScalarSub); in TEST_F() 48 auto prim = std::make_shared<Primitive>(prim::kScalarMul); in TEST_F() 53 auto prim = std::make_shared<Primitive>(prim::kScalarDiv); in TEST_F() 58 auto prim = std::make_shared<Primitive>(prim::kScalarMod); in TEST_F() 63 auto prim = std::make_shared<Primitive>(prim::kScalarPow); in TEST_F() 68 auto prim = std::make_shared<Primitive>(prim::kScalarTrunc); in TEST_F() 73 auto prim = std::make_shared<Primitive>(prim::kScalarFloor); in TEST_F() 78 auto prim = std::make_shared<Primitive>(prim::kScalarUadd); in TEST_F() 83 auto prim = std::make_shared<Primitive>(prim::kScalarUsub); in TEST_F() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | typeInferenceLiteralUnion.types | 6 export type Primitive = number | string | boolean | Date; 7 >Primitive : Primitive 47 …rt function extent<T extends Numeric>(array: Array<T | Primitive>): [T | Primitive, T | Primitive]… 48 >extent : <T extends Numeric>(array: Array<T | Primitive>) => [T | Primitive, T | Primitive] | [und… 49 >array : (Primitive | T)[] 58 let extentMixed: [Primitive | NumCoercible, Primitive | NumCoercible] | [undefined, undefined]; 59 >extentMixed : [undefined, undefined] | [Primitive | NumCoercible, Primitive | NumCoercible] 62 …oercible(10), 13, '12', true]) : [undefined, undefined] | [Primitive | NumCoercible, Primitive | N… 63 >extentMixed : [undefined, undefined] | [Primitive | NumCoercible, Primitive | NumCoercible] 64 …oercible(10), 13, '12', true]) : [undefined, undefined] | [Primitive | NumCoercible, Primitive | N… [all …]
|
D | typeInferenceLiteralUnion.symbols | 6 export type Primitive = number | string | boolean | Date; 7 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0)) 49 …rt function extent<T extends Numeric>(array: Array<T | Primitive>): [T | Primitive, T | Primitive]… 56 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0)) 58 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0)) 60 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0)) 68 let extentMixed: [Primitive | NumCoercible, Primitive | NumCoercible] | [undefined, undefined]; 70 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0)) 72 >Primitive : Symbol(Primitive, Decl(typeInferenceLiteralUnion.ts, 0, 0))
|
D | typeInferenceLiteralUnion.js | 6 export type Primitive = number | string | boolean | Date; 30 …rt function extent<T extends Numeric>(array: Array<T | Primitive>): [T | Primitive, T | Primitive]… 35 let extentMixed: [Primitive | NumCoercible, Primitive | NumCoercible] | [undefined, undefined];
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
D | QuadRasterizer.cpp | 43 Int yMin = *Pointer<Int>(primitive + OFFSET(Primitive, yMin)); in generate() 44 Int yMax = *Pointer<Int>(primitive + OFFSET(Primitive, yMax)); in generate() 56 primitive += sizeof(Primitive) * state.multiSampleCount; in generate() 101 …Int x0a = Int(*Pointer<Short>(primitive + OFFSET(Primitive, outline->left) + (y + 0) * sizeof(Prim… in rasterize() 102 …Int x0b = Int(*Pointer<Short>(primitive + OFFSET(Primitive, outline->left) + (y + 1) * sizeof(Prim… in rasterize() 107 …*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive, outline->left) + (y + 0) * s… in rasterize() 108 …*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive, outline->left) + (y + 1) * s… in rasterize() 114 …Int x1a = Int(*Pointer<Short>(primitive + OFFSET(Primitive, outline->right) + (y + 0) * sizeof(Pri… in rasterize() 115 …Int x1b = Int(*Pointer<Short>(primitive + OFFSET(Primitive, outline->right) + (y + 1) * sizeof(Pri… in rasterize() 120 …*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive, outline->right) + (y + 0) * … in rasterize() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
D | QuadRasterizer.cpp | 56 yMin = *Pointer<Int>(primitive + OFFSET(Primitive,yMin)); in generate() 57 yMax = *Pointer<Int>(primitive + OFFSET(Primitive,yMax)); in generate() 69 primitive += sizeof(Primitive) * state.multiSample; in generate() 121 …Int x0a = Int(*Pointer<Short>(primitive + OFFSET(Primitive,outline->left) + (y + 0) * sizeof(Primi… in rasterize() 122 …Int x0b = Int(*Pointer<Short>(primitive + OFFSET(Primitive,outline->left) + (y + 1) * sizeof(Primi… in rasterize() 127 …(*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive,outline->left) + (y + 0) * s… in rasterize() 128 …(*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive,outline->left) + (y + 1) * s… in rasterize() 134 …Int x1a = Int(*Pointer<Short>(primitive + OFFSET(Primitive,outline->right) + (y + 0) * sizeof(Prim… in rasterize() 135 …Int x1b = Int(*Pointer<Short>(primitive + OFFSET(Primitive,outline->right) + (y + 1) * sizeof(Prim… in rasterize() 140 …*Pointer<Short>(primitive + q * sizeof(Primitive) + OFFSET(Primitive,outline->right) + (y + 0) * s… in rasterize() [all …]
|
/third_party/mindspore/mindspore/core/ir/ |
D | primitive.cc | 29 Primitive::Primitive(const std::string &name, const bool is_base, const PrimType prim_type) in Primitive() function in mindspore::Primitive 38 Primitive::Primitive(const std::string &name, const std::unordered_map<std::string, ValuePtr> &attr… in Primitive() function in mindspore::Primitive 48 Primitive::Primitive(const Primitive &prim) in Primitive() function in mindspore::Primitive 59 abstract::AbstractBasePtr Primitive::ToAbstract() { in ToAbstract() 60 …return std::make_shared<abstract::PrimitiveAbstractClosure>(shared_from_base<Primitive>(), nullptr… in ToAbstract() 63 bool Primitive::operator==(const Value &other) const { in operator ==() 64 if (other.isa<Primitive>()) { in operator ==() 65 auto other_prim = static_cast<const Primitive &>(other); in operator ==() 72 bool Primitive::operator==(const Primitive &other) const { in operator ==() 92 std::string Primitive::GetAttrsText() const { in GetAttrsText()
|
D | primitive.h | 41 class MS_CORE_API Primitive : public Named { 43 …explicit Primitive(const std::string &name, const bool is_base = true, const PrimType prim_type = … 44 Primitive(const std::string &name, const std::unordered_map<std::string, ValuePtr> &attrs); 45 Primitive(const Primitive &prim); 46 MS_DECLARE_PARENT(Primitive, Named); 55 Primitive &AddAttr(const std::string &name, const ValuePtr &attr) { in AddAttr() 63 Primitive &DelAttr(const std::string &name) { in DelAttr() 68 Primitive &SetAttrs(const std::unordered_map<std::string, ValuePtr> &attrs) { in SetAttrs() 100 virtual PrimitivePtr Clone() { return std::make_shared<Primitive>(*this); } in Clone() 109 bool operator==(const Primitive &other) const; [all …]
|
/third_party/mindspore/mindspore/lite/mindir/src/ |
D | mindir.cc | 34 auto ret_value = flatbuffers::GetMutableRoot<schema::Primitive>(new_addr); in MindIR_Activation_CreatePrimitive() 39 auto prim = static_cast<const schema::Primitive *>(primitive); in MindIR_Activation_GetActivationType() 55 auto prim = static_cast<schema::Primitive *>(*primitive); in MindIR_Activation_SetActivationType() 66 auto ret_value = flatbuffers::GetMutableRoot<schema::Primitive>(new_addr); in MindIR_Activation_SetActivationType() 73 auto prim = static_cast<const schema::Primitive *>(primitive); in MindIR_Activation_GetAlpha() 87 auto prim = static_cast<schema::Primitive *>(*primitive); in MindIR_Activation_SetAlpha() 97 auto ret_value = flatbuffers::GetMutableRoot<schema::Primitive>(new_addr); in MindIR_Activation_SetAlpha() 104 auto prim = static_cast<const schema::Primitive *>(primitive); in MindIR_Activation_GetMinVal() 118 auto prim = static_cast<schema::Primitive *>(*primitive); in MindIR_Activation_SetMinVal() 128 auto ret_value = flatbuffers::GetMutableRoot<schema::Primitive>(new_addr); in MindIR_Activation_SetMinVal() [all …]
|
/third_party/mindspore/mindspore/lite/schema/ |
D | model_generated.h | 21 struct Primitive; 454 struct Primitive FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { 1076 template<> inline const mindspore::schema::Abs *Primitive::value_as<mindspore::schema::Abs>() const… 1080 template<> inline const mindspore::schema::Activation *Primitive::value_as<mindspore::schema::Activ… 1084 template<> inline const mindspore::schema::ActivationGrad *Primitive::value_as<mindspore::schema::A… 1088 template<> inline const mindspore::schema::Adam *Primitive::value_as<mindspore::schema::Adam>() con… 1092 template<> inline const mindspore::schema::AddFusion *Primitive::value_as<mindspore::schema::AddFus… 1096 template<> inline const mindspore::schema::AdderFusion *Primitive::value_as<mindspore::schema::Adde… 1100 template<> inline const mindspore::schema::AddGrad *Primitive::value_as<mindspore::schema::AddGrad>… 1104 template<> inline const mindspore::schema::AddN *Primitive::value_as<mindspore::schema::AddN>() con… [all …]
|
/third_party/mindspore/mindspore/lite/src/common/ |
D | prim_util.cc | 34 return static_cast<const schema::v0::Primitive *>(primitive)->value_type(); in GetPrimitiveType() 37 return static_cast<const schema::Primitive *>(primitive)->value_type(); in GetPrimitiveType() 46 …return schema::v0::EnumNamePrimitiveType(static_cast<const schema::v0::Primitive *>(primitive)->va… in GetPrimitiveTypeName() 49 …return schema::EnumNamePrimitiveType(static_cast<const schema::Primitive *>(primitive)->value_type… in GetPrimitiveTypeName() 61 …return reinterpret_cast<const schema::Primitive *>(primitive)->value_type() == schema::PrimitiveTy… in IsPartialNode() 65 return reinterpret_cast<const schema::v0::Primitive *>(primitive)->value_type() == in IsPartialNode() 75 …return reinterpret_cast<const schema::Primitive *>(primitive)->value_type() == schema::PrimitiveTy… in IsCallNode() 83 …return reinterpret_cast<const schema::Primitive *>(primitive)->value_type() == schema::PrimitiveTy… in IsSwitchNode() 91 …return reinterpret_cast<const schema::Primitive *>(primitive)->value_type() == schema::PrimitiveTy… in IsCustomNode() 100 …auto partial_fusion = reinterpret_cast<const schema::Primitive *>(primitive)->value_as_PartialFusi… in GetPartialGraphIndex() [all …]
|
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/ |
D | opt_test.py | 19 from mindspore.ops import Primitive 30 scalar_add = Primitive(Constants.kScalarAdd) 31 scalar_mul = Primitive(Constants.kScalarMul) 32 tuple_getitem = Primitive(Constants.kTupleGetItem) 33 switch = Primitive('Switch') 73 R = Primitive('R') 90 P = Primitive('P') 91 R = Primitive('R') 112 P = Primitive('P') 113 Q = Primitive('Q') [all …]
|
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/ |
D | ir_fusion_test.py | 15 from mindspore.ops import Primitive 21 tuple_getitem = Primitive(Constants.kTupleGetItem) 25 make_tuple = Primitive("MakeTuple") 28 conv_bn1 = Primitive('ConvBN1') 29 bn2_add_relu = Primitive('BN2AddRelu') 30 bn2_relu = Primitive('BN2Relu') 31 fused_bn1 = Primitive('FusedBN1') 32 fused_bn2 = Primitive('FusedBN2') 33 fused_bn3 = Primitive('FusedBN3') 34 bn_grad1 = Primitive('BNGrad1') [all …]
|
D | transdata_split_test.py | 15 from mindspore.ops import Primitive 19 tuple_getitem = Primitive(Constants.kTupleGetItem) 22 make_tuple = Primitive('MakeTuple') 23 four2five = Primitive('Four2Five') 24 five2four = Primitive('Five2Four') 25 transdata = Primitive("TransData") 26 transpose = Primitive("Transpose")
|
D | bn_split.py | 16 from mindspore.ops import Primitive 23 make_tuple = Primitive('MakeTuple') 24 tuple_getitem = Primitive(Constants.kTupleGetItem) 27 fused_bn1 = Primitive('FusedBN1') 28 fused_bn2 = Primitive('FusedBN2') 29 fused_bn3 = Primitive('FusedBN3') 30 bn_training_reduce = Primitive('BNTrainingReduce') 31 bn_training_update = Primitive('BNTrainingUpdate') 32 allreduce = Primitive('AllReduce') 33 mul = Primitive('Mul')
|
D | lars_v2_fission_test.py | 16 from mindspore.ops import Primitive 19 lars_v2 = Primitive('LarsV2') 20 square_sum_all = Primitive('SquareSumAll') 21 lars_v2_update = Primitive('LarsV2Update') 22 make_tuple = Primitive('MakeTuple') 23 tuple_getitem = Primitive(Constants.kTupleGetItem)
|
D | bn_grad_split.py | 16 from mindspore.ops import Primitive 22 make_tuple = Primitive('MakeTuple') 23 tuple_getitem = Primitive(Constants.kTupleGetItem) 26 bn_grad1 = Primitive('BNGrad1') 27 bn_grad2 = Primitive('BNGrad2') 28 bn_grad3 = Primitive('BNGrad3') 29 bn_training_update_grad = Primitive('BNTrainingUpdateGrad') 30 bn_training_reduce_grad = Primitive('BNTrainingReduceGrad') 31 allreduce = Primitive('AllReduce') 32 mul = Primitive('Mul')
|
D | derelu_fusion.py | 15 from mindspore.ops import Primitive 20 relu_grad = Primitive('ReluGrad') 21 relu_v2 = Primitive('ReLUV2') 22 relu_grad_v2 = Primitive('ReluGradV2') 23 make_tuple = Primitive('MakeTuple') 24 tuple_getitem = Primitive(Constants.kTupleGetItem)
|
D | unsorted_segment_sum_fission.py | 15 from mindspore.ops import Primitive 19 make_tuple = Primitive('MakeTuple') 20 tuple_getitem = Primitive(Constants.kTupleGetItem) 23 padding = Primitive('Padding') 24 op_slice = Primitive('Slice') 25 op_unsorted_segment_sum = Primitive('UnsortedSegmentSum')
|
/third_party/mindspore/mindspore/lite/schema/inner/ |
D | model_generated.h | 23 struct Primitive; 595 typedef Primitive TableType; 599 struct Primitive FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { 1228 …static flatbuffers::Offset<Primitive> Pack(flatbuffers::FlatBufferBuilder &_fbb, const PrimitiveT*… 1231 template<> inline const mindspore::schema::Abs *Primitive::value_as<mindspore::schema::Abs>() const… 1235 template<> inline const mindspore::schema::Activation *Primitive::value_as<mindspore::schema::Activ… 1239 template<> inline const mindspore::schema::ActivationGrad *Primitive::value_as<mindspore::schema::A… 1243 template<> inline const mindspore::schema::Adam *Primitive::value_as<mindspore::schema::Adam>() con… 1247 template<> inline const mindspore::schema::AddFusion *Primitive::value_as<mindspore::schema::AddFus… 1251 template<> inline const mindspore::schema::AdderFusion *Primitive::value_as<mindspore::schema::Adde… [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | typeInferenceLiteralUnion.ts | 5 export type Primitive = number | string | boolean | Date; alias 29 …rt function extent<T extends Numeric>(array: Array<T | Primitive>): [T | Primitive, T | Primitive]… 34 let extentMixed: [Primitive | NumCoercible, Primitive | NumCoercible] | [undefined, undefined]; variable
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | SetupRoutine.cpp | 107 …*Pointer<Byte8>(primitive + OFFSET(Primitive, clockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0xFF… in generate() 108 …*Pointer<Byte8>(primitive + OFFSET(Primitive, invClockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0… in generate() 112 …*Pointer<Byte8>(primitive + OFFSET(Primitive, clockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0x00… in generate() 113 …*Pointer<Byte8>(primitive + OFFSET(Primitive, invClockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0… in generate() 118 …*Pointer<Byte8>(primitive + OFFSET(Primitive, clockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0xFF… in generate() 119 …*Pointer<Byte8>(primitive + OFFSET(Primitive, invClockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0… in generate() 211 …r<Byte> leftEdge = Pointer<Byte>(primitive + OFFSET(Primitive, outline->left)) + q * sizeof(Primit… in generate() 212 …Byte> rightEdge = Pointer<Byte>(primitive + OFFSET(Primitive, outline->right)) + q * sizeof(Primit… in generate() 222 *Pointer<Short>(leftEdge + y * sizeof(Primitive::Span)) = x; in generate() 223 *Pointer<Short>(rightEdge + y * sizeof(Primitive::Span)) = x; in generate() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | SetupRoutine.cpp | 117 …*Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0xFF,… in generate() 118 …*Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0x… in generate() 122 …*Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0x00,… in generate() 123 …*Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0x… in generate() 129 *Pointer<Float>(primitive + OFFSET(Primitive,area)) = 0.5f * A; in generate() 136 …*Pointer<Byte8>(primitive + OFFSET(Primitive,clockwiseMask)) = Byte8(0xFF, 0xFF, 0xFF, 0xFF, 0xFF,… in generate() 137 …*Pointer<Byte8>(primitive + OFFSET(Primitive,invClockwiseMask)) = Byte8(0x00, 0x00, 0x00, 0x00, 0x… in generate() 225 …r<Byte> leftEdge = Pointer<Byte>(primitive + OFFSET(Primitive,outline->left)) + q * sizeof(Primiti… in generate() 226 …<Byte> rightEdge = Pointer<Byte>(primitive + OFFSET(Primitive,outline->right)) + q * sizeof(Primit… in generate() 236 *Pointer<Short>(leftEdge + y * sizeof(Primitive::Span)) = x; in generate() [all …]
|