create_replacement
Applicable Products
All processors
Function Usage
Creates a replacement graph to provide a replacement subgraph in pattern fusion or operator decomposition.
Prototype
1 | create_replacement(graph: Graph) -> Graph |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Replacement graph, which is of the ge.graph.Graph type. |
Returns
Type |
Description |
|---|---|
Graph |
The input replacement graph object. If the input is not of the ge.graph.Graph type, TypeError is thrown. |
Restrictions
None
Parent topic: Basic Data Structures and APIs of Graphs