Class DependencyTracker<T,D>
- java.lang.Object
-
- org.nd4j.autodiff.samediff.internal.AbstractDependencyTracker<T,D>
-
- org.nd4j.autodiff.samediff.internal.DependencyTracker<T,D>
-
public class DependencyTracker<T,D> extends AbstractDependencyTracker<T,D>
-
-
Constructor Summary
Constructors Constructor Description DependencyTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IDependencyMap<T,D>
newTMap()
protected Set<T>
newTSet()
protected String
toStringD(D d)
protected String
toStringT(T t)
-
Methods inherited from class org.nd4j.autodiff.samediff.internal.AbstractDependencyTracker
addDependency, addOrDependency, checkAndUpdateIfAllSatisfied, clear, getDependencies, getFirstNewAllSatisfiedMatching, getNewAllSatisfied, getNewAllSatisfiedList, hasDependency, hasNewAllSatisfied, isAllSatisfied, isEmpty, isSatisfied, markSatisfied, removeDependency
-
-
-
-
Method Detail
-
newTMap
protected IDependencyMap<T,D> newTMap()
- Specified by:
newTMap
in classAbstractDependencyTracker<T,D>
- Returns:
- A new map where the dependents (i.e., Y in "X -> Y") are the key
-
newTSet
protected Set<T> newTSet()
- Specified by:
newTSet
in classAbstractDependencyTracker<T,D>
- Returns:
- A new set where the dependents (i.e., Y in "X -> Y") are the key
-
toStringT
protected String toStringT(T t)
- Specified by:
toStringT
in classAbstractDependencyTracker<T,D>
- Returns:
- A String representation of the dependent object
-
-