mxnet
base.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
25 #ifndef NNVM_BASE_H_
26 #define NNVM_BASE_H_
27 
28 #include <dmlc/base.h>
29 #include <dmlc/common.h>
30 #include <dmlc/any.h>
31 #include <dmlc/memory.h>
32 #include <dmlc/logging.h>
33 #include <dmlc/registry.h>
34 #include <dmlc/array_view.h>
35 
36 namespace nnvm {
37 
39 using dmlc::any;
40 
42 using dmlc::array_view;
43 
45 using dmlc::get;
46 
48 using dmlc::unsafe_get;
49 
50 } // namespace nnvm
51 
52 // describe op registration point
53 #define NNVM_STRINGIZE_DETAIL(x) #x
54 #define NNVM_STRINGIZE(x) NNVM_STRINGIZE_DETAIL(x)
55 #define NNVM_DESCRIBE(...) describe(__VA_ARGS__ "\n\nFrom:" __FILE__ ":" NNVM_STRINGIZE(__LINE__))
56 #define NNVM_ADD_FILELINE "\n\nDefined in " __FILE__ ":L" NNVM_STRINGIZE(__LINE__)
57 #endif // NNVM_BASE_H_
Read only data structure to reference continuous memory region of array. Provide unified view for vec...
Definition: array_view.h:36
Definition: base.h:36
Read only data structure to reference array.
Additional memory hanlding utilities.
Container to hold any data type.
defines some common utility function.
Registry utility that helps to build registry singletons.