• 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_INCLUDE_COMMON_PYBIND_API_API_REGISTER_H_
18 #define MINDSPORE_CCSRC_INCLUDE_COMMON_PYBIND_API_API_REGISTER_H_
19 
20 #include <vector>
21 #include "pybind11/pybind11.h"
22 #include "pybind11/stl.h"
23 
24 namespace py = pybind11;
25 namespace mindspore {
26 void RegTyping(py::module *m);
27 void RegCNode(const py::module *m);
28 void RegCell(const py::module *m);
29 void RegMetaFuncGraph(const py::module *m);
30 void RegFuncGraph(const py::module *m);
31 void RegUpdateFuncGraphHyperParams(py::module *m);
32 void RegParamInfo(const py::module *m);
33 void RegPrimitive(const py::module *m);
34 void RegPrimitiveFunction(const py::module *m);
35 void RegSignatureEnumRW(const py::module *m);
36 void RegValues(const py::module *m);
37 void RegMsContext(const py::module *m);
38 void RegSecurity(py::module *m);
39 void RegForkUtils(py::module *m);
40 void RegRandomSeededGenerator(py::module *m);
41 
42 namespace hal {
43 void RegStream(py::module *m);
44 void RegEvent(py::module *m);
45 void RegMemory(py::module *m);
46 }  // namespace hal
47 namespace initializer {
48 void RegRandomNormal(py::module *m);
49 }
50 
51 namespace pynative {
52 void RegPyNativeExecutor(const py::module *m);
53 void RegisterPyBoostFunction(py::module *m);
54 }  // namespace pynative
55 
56 namespace pijit {
57 void RegPIJitInterface(py::module *m);
58 }
59 
60 namespace tensor {
61 void RegMetaTensor(const py::module *m);
62 void RegCSRTensor(const py::module *m);
63 void RegCOOTensor(const py::module *m);
64 void RegRowTensor(const py::module *m);
65 void RegMapTensor(const py::module *m);
66 }  // namespace tensor
67 
68 #ifndef ENABLE_SECURITY
69 namespace profiler {
70 void RegProfilerManager(const py::module *m);
71 void RegProfiler(const py::module *m);
72 }  // namespace profiler
73 #endif
74 
75 namespace prim {
76 void RegCompositeOpsGroup(const py::module *m);
77 }
78 #ifdef _MSC_VER
79 namespace abstract {
80 void RegPrimitiveFrontEval();
81 }
82 #endif
83 
84 namespace ops {
85 void RegOpEnum(py::module *m);
86 }  // namespace ops
87 }  // namespace mindspore
88 
89 #endif  // MINDSPORE_CCSRC_INCLUDE_COMMON_PYBIND_API_API_REGISTER_H_
90