• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2019 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_CCSRC_TRANSFORM_GRAPH_IR_OP_DECLARE_ARRAY_OPS_DECLARE_H_
18 #define MINDSPORE_CCSRC_TRANSFORM_GRAPH_IR_OP_DECLARE_ARRAY_OPS_DECLARE_H_
19 
20 #include <string>
21 #include <unordered_map>
22 #include "transform/graph_ir/op_declare/op_declare_macro.h"
23 #include "ops/array_ops.h"
24 
25 namespace mindspore::transform {
26 DECLARE_OP_ADAPTER(Shape)
27 DECLARE_OP_USE_OUTPUT(Shape)
28 
29 DECLARE_OP_ADAPTER(Reshape)
30 DECLARE_OP_USE_OUTPUT(Reshape)
31 
32 DECLARE_OP_ADAPTER(TransShape)
33 DECLARE_OP_USE_INPUT_ATTR(TransShape)
34 DECLARE_OP_USE_OUTPUT(TransShape)
35 
36 DECLARE_OP_ADAPTER(MirrorPad)
37 DECLARE_OP_USE_OUTPUT(MirrorPad)
38 
39 DECLARE_OP_ADAPTER(MirrorPadGrad)
40 DECLARE_OP_USE_OUTPUT(MirrorPadGrad)
41 
42 DECLARE_OP_ADAPTER(ExpandDims)
43 DECLARE_OP_USE_OUTPUT(ExpandDims)
44 
45 DECLARE_OP_ADAPTER(Squeeze)
46 DECLARE_OP_USE_OUTPUT(Squeeze)
47 
48 DECLARE_OP_ADAPTER(Constant)
49 DECLARE_OP_USE_OUTPUT(Constant)
50 
51 DECLARE_OP_ADAPTER(Summary)
52 
53 DECLARE_OP_ADAPTER(Const)
54 DECLARE_OP_USE_OUTPUT(Const)
55 
56 DECLARE_OP_ADAPTER(Data)
57 
58 DECLARE_OP_ADAPTER(ReverseSequence)
59 DECLARE_OP_USE_OUTPUT(ReverseSequence)
60 
61 DECLARE_OP_ADAPTER(EditDistance)
62 DECLARE_OP_USE_OUTPUT(EditDistance)
63 
64 DECLARE_OP_ADAPTER(Unsqueeze)
65 DECLARE_OP_USE_OUTPUT(Unsqueeze)
66 }  // namespace mindspore::transform
67 #endif  // MINDSPORE_CCSRC_TRANSFORM_GRAPH_IR_OP_DECLARE_ARRAY_OPS_DECLARE_H_
68