public interface Merger extends Serializable
DenseSparseMatrix
into a single DenseSparseMatrix
.
Mergers are principally used to aggregate gradients across a minibatch.
Merging is done by summation.
Modifier and Type | Method and Description |
---|---|
DenseSparseMatrix |
merge(DenseSparseMatrix[] inputs)
Merges an array of DenseSparseMatrix into a single DenseSparseMatrix.
|
SparseVector |
merge(SparseVector[] inputs)
Merges an array of SparseVector into a single SparseVector.
|
DenseSparseMatrix merge(DenseSparseMatrix[] inputs)
inputs
- The matrices to merge.SparseVector merge(SparseVector[] inputs)
inputs
- The vectors to merge.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.