Registry entry for pass functions.
More...
#include <pass.h>
|
PassFunctionReg & | self () |
|
Registry entry for pass functions.
PassFunctionReg& nnvm::PassFunctionReg::depend_graph_attr |
( |
const std::string & |
attr_name | ) |
|
|
inline |
Declare this pass requires the given graph attribute to be available before being applied on the graph.
- Parameters
-
attr_name | Name of the attribute. |
- Returns
- Reference to self.
PassFunctionReg& nnvm::PassFunctionReg::depend_op_attr |
( |
const std::string & |
attr_name | ) |
|
|
inline |
Declare this pass requires the given operator attribute to be available before being applied on the graph.
- Parameters
-
attr_name | Name of the attribute. |
- Returns
- Reference to self.
PassFunctionReg& nnvm::PassFunctionReg::provide_graph_attr |
( |
const std::string & |
attr_name | ) |
|
|
inline |
Declare that this pass will generate the given graph attribute name once it is applied on the graph.
- Parameters
-
attr_name | Name of the graph attribute. |
- Returns
- Reference to self.
Set whether this pass will change graph structure.
- Parameters
-
v | If true, the pass will change graph structure. |
- Returns
- Reference to self.
bool nnvm::PassFunctionReg::change_graph {false} |
Whether the pass will change graph structure If this is false, the pass will only change attributes.
std::vector<std::string> nnvm::PassFunctionReg::graph_attr_dependency |
dependencies on attributes in the graph
std::vector<std::string> nnvm::PassFunctionReg::graph_attr_targets |
generated targets of graph attributes
std::vector<std::string> nnvm::PassFunctionReg::op_attr_dependency |
dependencies on operator attributes
The documentation for this struct was generated from the following file:
- /work/mxnet/3rdparty/tvm/nnvm/include/nnvm/pass.h