Package org.apache.sysds.hops.fedplanner
Class FederatedPlannerUtils
java.lang.Object
org.apache.sysds.hops.fedplanner.FederatedPlannerUtils
Utility class for federated planners.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParamMap(FunctionOp funcOp) Return parameter map containing the mapping from parameter name to input hop for all parameters of the function hop.getTransientInputs(Hop currentHop, Map<String, Hop> paramMap, Map<String, Hop> transientWrites, LocalVariableMap localVariableMap) Get transient inputs from either paramMap or transientWrites.
-
Constructor Details
-
FederatedPlannerUtils
public FederatedPlannerUtils()
-
-
Method Details
-
getTransientInputs
public static ArrayList<Hop> getTransientInputs(Hop currentHop, Map<String, Hop> paramMap, Map<String, Hop> transientWrites, LocalVariableMap localVariableMap) Get transient inputs from either paramMap or transientWrites. Inputs from paramMap has higher priority than inputs from transientWrites.- Parameters:
currentHop- hop for which inputs are read from mapsparamMap- of local parameterstransientWrites- map of transient writeslocalVariableMap- map of local variables- Returns:
- inputs of currentHop
-
getParamMap
Return parameter map containing the mapping from parameter name to input hop for all parameters of the function hop.- Parameters:
funcOp- hop for which the mapping of parameter names to input hops are made- Returns:
- parameter map or empty map if function has no parameters
-