1 /** 2 * Copyright 2019-2023 Huawei Technologies Co., Ltd 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MINDSPORE_CORE_BASE_SEQUENCE_OP_NAME_H_ 18 #define MINDSPORE_CORE_BASE_SEQUENCE_OP_NAME_H_ 19 20 namespace mindspore { 21 // Tuple 22 constexpr auto kRealMakeTupleOpName = "RealMakeTuple"; 23 constexpr auto kMakeTupleOpName = "MakeTuple"; 24 constexpr auto kTupleGetItemOpName = "TupleGetItem"; 25 constexpr auto kTupleSetItemOpName = "tuple_setitem"; 26 constexpr auto kTupleLtOpName = "tuple_lt"; 27 constexpr auto kTupleLeOpName = "tuple_le"; 28 constexpr auto kRealTupleGetItemOpName = "RealTupleGetItem"; 29 constexpr auto kTupleGreaterThanOpName = "tuple_greater_than"; 30 constexpr auto kTupleGreaterEqualOpName = "tuple_greater_equal"; 31 constexpr auto kTupleEqualOpName = "tuple_equal"; 32 33 // List 34 constexpr auto kListInplaceClearOpName = "ListInplaceClear"; 35 constexpr auto kListInplaceReverseOpName = "ListInplaceReverse"; 36 constexpr auto kListInplaceExtendOpName = "ListInplaceExtend"; 37 constexpr auto kListInplaceInsertOpName = "ListInplaceInsert"; 38 constexpr auto kListInplacePopOpName = "ListInplacePop"; 39 constexpr auto kMakeListOpName = "MakeList"; 40 constexpr auto kMakeListNewOpName = "make_list"; 41 constexpr auto kListGetItemOpName = "list_getitem"; 42 constexpr auto kListSetItemOpName = "list_setitem"; 43 constexpr auto kListLtOpName = "list_lt"; 44 constexpr auto kListLeOpName = "list_le"; 45 constexpr auto kListGreaterThanOpName = "list_greater_than"; 46 constexpr auto kListGreaterEqualOpName = "list_greater_equal"; 47 constexpr auto kListEqualOpName = "list_equal"; 48 constexpr auto kListDiffOpName = "ListDiff"; 49 50 // Dict 51 constexpr auto kDictInplaceSetItemOpName = "DictInplaceSetItem"; 52 53 // Sequence and Tensor 54 constexpr auto kTupleToTensorOpName = "TupleToTensor"; 55 constexpr auto kTensorToTupleOpName = "TensorToTuple"; 56 constexpr auto kListToTensorOpName = "ListToTensor"; 57 constexpr auto kTensorToListOpName = "TensorToList"; 58 59 // Sequence operation 60 constexpr auto kListAppendOpName = "ListAppend"; 61 constexpr auto kListInsertOpName = "ListInsert"; 62 constexpr auto kListInplaceAppendOpName = "ListInplaceAppend"; 63 constexpr auto kListAppendAndInsertGradOpName = "ListAppendAndInsertGrad"; 64 constexpr auto kSequenceAddOpName = "SequenceAdd"; 65 constexpr auto kSequenceCountOpName = "SequenceCount"; 66 constexpr auto kSequenceIndexOpName = "SequenceIndex"; 67 constexpr auto kSequenceMulOpName = "SequenceMul"; 68 constexpr auto kSequenceSliceOpName = "SequenceSlice"; 69 constexpr auto kSequenceLenOpName = "sequence_len"; 70 constexpr auto kSequenceZerosLikeOpName = "SequenceZerosLike"; 71 constexpr auto kMakeRangeOpName = "make_range"; 72 constexpr auto kSequenceAddOffsetOpName = "SequenceAddOffset"; 73 constexpr auto kSequenceSliceGradOpName = "SequenceSliceGrad"; 74 constexpr auto kSequenceSliceSetItemOpName = "SequenceSliceSetItem"; 75 constexpr auto kSequenceMaxOpName = "SequenceMax"; 76 constexpr auto kSequenceMinOpName = "SequenceMin"; 77 constexpr auto kInSequenceOpName = "InSequence"; 78 constexpr auto kSequenceAddNOpName = "SequenceAddN"; 79 constexpr auto kSequenceConcatOpName = "SequenceConcat"; 80 constexpr auto kSequenceStackOpName = "SequenceStack"; 81 constexpr auto kSequenceUnstackOpName = "SequenceUnstack"; 82 } // namespace mindspore 83 84 #endif // MINDSPORE_CORE_BASE_SEQUENCE_OP_NAME_H_ 85