NNVM Graph IR API.
This is a developer API that is used to manipulate and transform graphs.
Create a new graph from symbol.
Parameters: symbol (Symbol) – The symbolic graph used to create Graph object. Returns: graph – A generated new graph object. Return type: Graph
Graph is the graph object that can be used to apply optimization pass.
It contains additional graphwise attribute besides the internal symbol.
Apply passes to the graph
Parameters: passes (str or list of str) – The passes to be applied Returns: g – The transformed graph. Return type: Graph
Get text form of graph ir.
- join_entry_attrs (list of str) – List of graph NodeEntry attribute to be printed along each operator.
- join_node_attrs (list of str) – List of graph node attribute to be printed along each operator.
Get JSON representation of the graph
Returns: json – JSON representation of the graph Return type: str