Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4ec2f3
commit e10434b
Showing
3 changed files
with
109 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/graph/util/GraphIndices.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.deeplearning4j.nn.graph.util; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Simple helper class for ComputationGraph topological sort | ||
* | ||
* @author Alex Black | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
@Builder | ||
public class GraphIndices { | ||
private int[] topologicalSortOrder; | ||
private Map<String,Integer> nameToIdx; | ||
private Map<Integer,String> idxToName; | ||
} |