Interface Merger
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
HeapMerger,MatrixHeapMerger
An interface for merging an array of
DenseSparseMatrix into a single DenseSparseMatrix.
Mergers are principally used to aggregate gradients across a minibatch.
Merging is done by summation.
-
Method Summary
Modifier and TypeMethodDescriptionmerge(DenseSparseMatrix[] inputs) Merges an array of DenseSparseMatrix into a single DenseSparseMatrix.merge(SparseVector[] inputs) Merges an array of SparseVector into a single SparseVector.
-
Method Details
-
merge
Merges an array of DenseSparseMatrix into a single DenseSparseMatrix.- Parameters:
inputs- The matrices to merge.- Returns:
- The merged matrix.
-
merge
Merges an array of SparseVector into a single SparseVector.- Parameters:
inputs- The vectors to merge.- Returns:
- The merged vector.
-