public class FederatedCostEstimator extends Object
Modifier and Type | Field and Description |
---|---|
int |
DEFAULT_ITERATION_NUMBER |
int |
DEFAULT_MEMORY_ESTIMATE |
boolean |
printCosts |
double |
WORKER_COMPUTE_BANDWIDTH_FLOPS |
double |
WORKER_DEGREE_OF_PARALLELISM |
double |
WORKER_NETWORK_BANDWIDTH_BYTES_PS |
double |
WORKER_READ_BANDWIDTH_BYTES_PS |
Constructor and Description |
---|
FederatedCostEstimator() |
Modifier and Type | Method and Description |
---|---|
FederatedCost |
costEstimate(DMLProgram dmlProgram)
Estimate cost of given DML program in bytes.
|
FederatedCost |
costEstimate(Hop root)
Return cost estimate in bytes of Hop DAG starting from given root.
|
FederatedCost |
costEstimate(HopRel root,
Map<Long,List<HopRel>> hopRelMemo)
Return cost estimate in bytes of Hop DAG starting from given root HopRel.
|
public int DEFAULT_MEMORY_ESTIMATE
public int DEFAULT_ITERATION_NUMBER
public double WORKER_NETWORK_BANDWIDTH_BYTES_PS
public double WORKER_COMPUTE_BANDWIDTH_FLOPS
public double WORKER_DEGREE_OF_PARALLELISM
public double WORKER_READ_BANDWIDTH_BYTES_PS
public boolean printCosts
public FederatedCost costEstimate(DMLProgram dmlProgram)
dmlProgram
- for which the cost is estimatedpublic FederatedCost costEstimate(Hop root)
root
- of Hop DAG for which cost is estimatedpublic FederatedCost costEstimate(HopRel root, Map<Long,List<HopRel>> hopRelMemo)
root
- HopRel of Hop DAG for which cost is estimatedhopRelMemo
- memo table of HopRels for calculating input costsCopyright © 2021 The Apache Software Foundation. All rights reserved.