public interface SubGraphProcessor
Modifier and Type | Method and Description |
---|---|
List<SDVariable> |
processSubgraph(SameDiff sd,
SubGraph subGraph)
Replace the subgraph, and return the new outputs that should replace the old outputs.
Note that the order of the outputs you return matters! If the original outputs are [A,B,C] and you return output variables [X,Y,Z], then anywhere "A" was used as input will now use "X"; similarly Y replaces B, and Z replaces C. |
List<SDVariable> processSubgraph(SameDiff sd, SubGraph subGraph)
sd
- SameDiff instancesubGraph
- Subgraph to modifyCopyright © 2022. All rights reserved.