mxnet
Namespaces
node.h File Reference

Definitions and helper macros for IR/AST nodes. More...

#include <mxnet/runtime/c_runtime_api.h>
#include <mxnet/runtime/object.h>
#include <mxnet/runtime/memory.h>
#include <string>
#include <vector>
#include <utility>
#include <type_traits>
Include dependency graph for node.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mxnet
 namespace of mxnet
 

Detailed Description

Definitions and helper macros for IR/AST nodes.

The node folder contains base utilities for IR/AST nodes, invariant of which specific language dialect.

We implement AST/IR nodes as sub-classes of runtime::Object. The base class Node is just an alias of runtime::Object.

Besides the runtime type checking provided by Object, node folder contains additional functionalities such as reflection and serialization, which are important features for building a compiler infra.