| Package | Description |
|---|---|
| org.nd4j.autodiff.samediff.transform |
| Modifier and Type | Method and Description |
|---|---|
static SameDiff |
GraphTransformUtil.replaceSubgraphsMatching(@NonNull SameDiff sd,
@NonNull SubGraphPredicate p,
@NonNull SubGraphProcessor processor)
Find all of the subgraphs that match the specified SubGraphPredicate and then replace them with a different subgraph.
Note that the original SameDiff instance is not modified; a copy is made, which is then modified and returned. |
Copyright © 2021. All rights reserved.