public interface SubGraphProcessor
GraphTransformUtil
to define how a subgraph should be modified or replaced.
Note that when replacing a subgraph, the replacement subgraph must have the same number of outputs as the original subgraph.
Note that the order of the outputs matter.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.
|
List<SDVariable> processSubgraph(SameDiff sd, SubGraph subGraph)
sd
- SameDiff instancesubGraph
- Subgraph to modifyCopyright © 2020. All rights reserved.