public class EstimatorLayeredGraph extends SparsityEstimator
Modifier and Type | Class and Description |
---|---|
static class |
EstimatorLayeredGraph.LayeredGraph |
SparsityEstimator.OpCode
MIN_PAR_THRESHOLD, MULTI_THREADED_BUILD, MULTI_THREADED_ESTIM
Constructor and Description |
---|
EstimatorLayeredGraph() |
EstimatorLayeredGraph(int rounds) |
Modifier and Type | Method and Description |
---|---|
double |
estim(MatrixBlock m1,
MatrixBlock m2)
Estimates the output sparsity for a single matrix multiplication.
|
double |
estim(MatrixBlock m1,
MatrixBlock m2,
SparsityEstimator.OpCode op)
Estimates the output sparsity for a given binary operation.
|
double |
estim(MatrixBlock m,
SparsityEstimator.OpCode op)
Estimates the output sparsity for a given unary operation.
|
DataCharacteristics |
estim(MMNode root)
Estimates the output sparsity of a DAG of matrix multiplications
for the given operator graph of a single root node.
|
public EstimatorLayeredGraph()
public EstimatorLayeredGraph(int rounds)
public DataCharacteristics estim(MMNode root)
SparsityEstimator
estim
in class SparsityEstimator
root
- DAG root nodepublic double estim(MatrixBlock m1, MatrixBlock m2, SparsityEstimator.OpCode op)
SparsityEstimator
estim
in class SparsityEstimator
m1
- left-hand-side operandm2
- right-hand-side operandop
- operator codepublic double estim(MatrixBlock m, SparsityEstimator.OpCode op)
SparsityEstimator
estim
in class SparsityEstimator
m
- left-hand-side operandop
- operator codepublic double estim(MatrixBlock m1, MatrixBlock m2)
SparsityEstimator
estim
in class SparsityEstimator
m1
- left-hand-side operandm2
- right-hand-side operandCopyright © 2020 The Apache Software Foundation. All rights reserved.