Class FederatedPlannerUtils

java.lang.Object
org.apache.sysds.hops.fedplanner.FederatedPlannerUtils

public class FederatedPlannerUtils extends Object
Utility class for federated planners.
  • 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 maps
      paramMap - of local parameters
      transientWrites - map of transient writes
      localVariableMap - map of local variables
      Returns:
      inputs of currentHop
    • getParamMap

      public static Map<String,Hop> getParamMap(FunctionOp funcOp)
      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