Uses of Class
org.apache.sysds.hops.Hop
Packages that use Hop
Package
Description
-
Uses of Hop in org.apache.sysds.hops
Subclasses of Hop in org.apache.sysds.hopsModifier and TypeClassDescriptionclassclassclassBinary (cell operations): aij + bij Properties: Symbol: *, -, +, ...classA DataGenOp can be rand (or matrix constructor), sequence, and sample - these operators have different parameters and use a map of parameter type to hop position.classA DataOp can be either a persistent read/write or transient read/write - writes will always have at least one input, but all types can have parameters (e.g., for csv literals of delimiter, header, etc).classclassThis FunctionOp represents the call to a DML-bodied or external function.classclassclassclassOptional hop interface, to be implemented by multi-threaded hops.classThe NaryOp Hop allows for a variable number of operands.classDefines the HOP for calling an internal function (with custom parameters) from a DML script.classNote: this hop should be called AggQuaternaryOp in consistency with AggUnaryOp and AggBinaryOp; however, since there does not exist a real QuaternaryOp yet - we can leave it as is for now.classReorg (cell) operation: aij Properties: Symbol: ', rdiag, rshape, rsort 1 Operand (except sort and reshape take additional arguments) Semantic: change indices (in mapper or reducer) NOTE MB: reshape integrated here because (1) ParameterizedBuiltinOp requires name-value pairs for params and (2) most importantly semantic of reshape is exactly a reorg op.classPrimary use cases for now, arequantile (<n-1-matrix>, <n-1-matrix>, <literal>): quantile (A, w, 0.5)quantile (<n-1-matrix>, <n-1-matrix>, <scalar>): quantile (A, w, s)interquantile (<n-1-matrix>, <n-1-matrix>, <scalar>): interquantile (A, w, s)Keep in mind, that we also have binaries for it w/o weights.classMethods in org.apache.sysds.hops that return HopModifier and TypeMethodDescriptionDataGenOp.getConstantValue()Hop.getInput(int ix) ParameterizedBuiltinOp.getParameterHop(String name) ParameterizedBuiltinOp.getTargetHop()Hop.resetVisitStatus()Methods in org.apache.sysds.hops that return types with arguments of type HopMethods in org.apache.sysds.hops with parameters of type HopModifier and TypeMethodDescriptionvoidstatic booleanOptimizerUtils.allowsToFilterEmptyBlockOutputs(Hop hop) static voidIf the condition fails, print the Op and its Id, along with the message formatted with objects.booleanbooleanbooleanbooleanbooleanbooleanbooleanabstract booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleandoubleHop.computeBoundsInformation(Hop input) static doubleHop.computeBoundsInformation(Hop input, LocalVariableMap vars) static doubleHop.computeBoundsInformation(Hop input, LocalVariableMap vars, Map<Long, Double> memo) static longHop.computeSizeInformation(Hop input) longHop.computeSizeInformation(Hop input, LocalVariableMap vars) longHop.computeSizeInformation(Hop input, LocalVariableMap vars, Map<Long, Long> memo) static LopBinaryOp.constructSPAppendLop(Hop left, Hop right, Types.DataType dt, Types.ValueType vt, boolean cbind, Hop current) static LopHop.createOffsetLop(Hop hop, boolean repCols) static longOptimizerUtils.estimatePartitionedSizeExactSparsity(Hop hop) Estimates the footprint (in bytes) for a partitioned in-memory representation of a matrix with the hops dimensions and number of non-zeros nnz.MemoTable.getAllInputStats(Hop input) static doubleOptimizerUtils.getSparsity(Hop hop) static doubleOptimizerUtils.getTotalMemEstimate(Hop[] in, Hop out) static doubleOptimizerUtils.getTotalMemEstimate(Hop[] in, Hop out, boolean denseOut) booleanMemoTable.hasInputStatistics(Hop h) voidMemoTable.init(Hop hop, RecompileStatus status) voidHop.refreshColsParameterInformation(Hop input, LocalVariableMap vars) voidHop.refreshColsParameterInformation(Hop input, LocalVariableMap vars, Map<Long, Long> memo) voidHop.refreshRowsParameterInformation(Hop input, LocalVariableMap vars) voidHop.refreshRowsParameterInformation(Hop input, LocalVariableMap vars, Map<Long, Long> memo) static booleanBinaryOp.requiresReplication(Hop left, Hop right) static voidHop.resetRecompilationFlag(Hop hops, Types.ExecType et, Recompiler.ResetType reset) static doubleOptimizerUtils.rEvalSimpleDoubleExpression(Hop root, Map<Long, Double> valMemo) static doubleOptimizerUtils.rEvalSimpleDoubleExpression(Hop root, Map<Long, Double> valMemo, LocalVariableMap vars) static longOptimizerUtils.rEvalSimpleLongExpression(Hop root, Map<Long, Long> valMemo) Function to evaluate simple size expressions over literals and now/ncol.static longOptimizerUtils.rEvalSimpleLongExpression(Hop root, Map<Long, Long> valMemo, LocalVariableMap vars) voidMethod parameters in org.apache.sysds.hops with type arguments of type HopModifier and TypeMethodDescriptionvoidHop.addAllInputs(List<Hop> list) DnnOp.constructDnnLops(Types.ExecType et, List<Hop> inputs) voidMemoTable.extract(ArrayList<Hop> hops, RecompileStatus status) MemoTable.getAllInputStats(List<Hop> inputs) voidMemoTable.init(ArrayList<Hop> hops, RecompileStatus status) static voidHop.resetRecompilationFlag(ArrayList<Hop> hops, Types.ExecType et, Recompiler.ResetType reset) static voidHop.resetVisitStatus(List<Hop> hops) static voidHop.resetVisitStatus(List<Hop> hops, boolean force) Constructors in org.apache.sysds.hops with parameters of type HopModifierConstructorDescriptionAggBinaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp2 innOp, Types.AggOp outOp, Hop in1, Hop in2) AggUnaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.AggOp o, Types.Direction idx, Hop inp) BinaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp2 o, Hop inp1, Hop inp2) BinaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp2 o, Hop inp1, Hop inp2, boolean outer) DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, Hop in, HashMap<String, Hop> inputParameters) WRITE operation for Matrix This constructor supports expression in parametersDataOp(String l, Types.DataType dt, Types.ValueType vt, Hop in, Types.OpOpData dop, String fname) IndexingOp(String l, Types.DataType dt, Types.ValueType vt, Hop inpMatrix, Hop inpRowL, Hop inpRowU, Hop inpColL, Hop inpColU, boolean passedRowsLEU, boolean passedColsLEU) LeftIndexingOp(String l, Types.DataType dt, Types.ValueType vt, Hop inpMatrixLeft, Hop inpMatrixRight, Hop inpRowL, Hop inpRowU, Hop inpColL, Hop inpColU, boolean passedRowsLEU, boolean passedColsLEU) NaryOp(String name, Types.DataType dataType, Types.ValueType valueType, Types.OpOpN op, Hop... inputs) NaryOp constructor.QuaternaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp4 o, Hop inX, Hop inU, Hop inV) QuaternaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp4 o, Hop inX, Hop inU, Hop inV, boolean flag1, boolean flag2) Constructor for wsigmoid.QuaternaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp4 o, Hop inW, Hop inU, Hop inV, boolean umult, Types.OpOp1 uop, Types.OpOp2 sop) QuaternaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp4 o, Hop inX, Hop inU, Hop inV, Hop inW, boolean post) Constructor for wsloss.QuaternaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp4 o, Hop inX, Hop inU, Hop inV, Hop inW, int baseType, boolean flag1, boolean flag2) ReorgOp(String l, Types.DataType dt, Types.ValueType vt, Types.ReOrgOp o, Hop inp) TernaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp3 o, Hop inp1, Hop inp2, Hop inp3) TernaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp3 o, Hop inp1, Hop inp2, Hop inp3, Hop inp4, Hop inp5, Hop inp6) UnaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp1 o, Hop inp) Constructor parameters in org.apache.sysds.hops with type arguments of type HopModifierConstructorDescriptionDataGenOp(Types.OpOpDG mthd, DataIdentifier id, HashMap<String, Hop> inputParameters) Creates a new Rand HOP.DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, HashMap<String, Hop> params) READ operation for Matrix / SQL operation for tensor This constructor supports expressions in parametersDataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, Hop in, HashMap<String, Hop> inputParameters) WRITE operation for Matrix This constructor supports expression in parametersDnnOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpDnn o, ArrayList<Hop> inp) Create a hop from the builtin expressionFunctionOp(FunctionOp.FunctionType type, String fnamespace, String fname, String[] inputNames, List<Hop> inputs, String[] outputNames, boolean singleOut) FunctionOp(FunctionOp.FunctionType type, String fnamespace, String fname, String[] inputNames, List<Hop> inputs, String[] outputNames, boolean singleOut, boolean pseudo) FunctionOp(FunctionOp.FunctionType type, String fnamespace, String fname, String[] inputNames, List<Hop> inputs, String[] outputNames, ArrayList<Hop> outputHops) FunctionOp(FunctionOp.FunctionType type, String fnamespace, String fname, String[] inputNames, List<Hop> inputs, String[] outputNames, ArrayList<Hop> outputHops) ParameterizedBuiltinOp(String l, Types.DataType dt, Types.ValueType vt, Types.ParamBuiltinOp op, LinkedHashMap<String, Hop> inputParameters) Creates a new HOP for a function callReorgOp(String l, Types.DataType dt, Types.ValueType vt, Types.ReOrgOp o, List<Hop> inp) -
Uses of Hop in org.apache.sysds.hops.codegen
Subclasses of Hop in org.apache.sysds.hops.codegenMethods in org.apache.sysds.hops.codegen that return HopModifier and TypeMethodDescriptionstatic HopMain interface of sum-product optimizer, predicate dag.Methods in org.apache.sysds.hops.codegen that return types with arguments of type HopModifier and TypeMethodDescriptionSpoofCompiler.generateCodeFromHopDAGs(ArrayList<Hop> roots) Main interface of sum-product optimizer, statement block dag.Methods in org.apache.sysds.hops.codegen with parameters of type HopModifier and TypeMethodDescriptionbooleanstatic ArrayList<Instruction>SpoofCompiler.generateCodeFromHopDAGsToInst(Hop root) static HopMain interface of sum-product optimizer, predicate dag.Method parameters in org.apache.sysds.hops.codegen with type arguments of type HopModifier and TypeMethodDescriptionSpoofCompiler.generateCodeFromHopDAGs(ArrayList<Hop> roots) static ArrayList<Instruction>SpoofCompiler.generateCodeFromHopDAGsToInst(StatementBlock sb, ArrayList<Hop> roots) Main interface of sum-product optimizer, statement block dag. -
Uses of Hop in org.apache.sysds.hops.codegen.cplan
Methods in org.apache.sysds.hops.codegen.cplan that return types with arguments of type HopMethod parameters in org.apache.sysds.hops.codegen.cplan with type arguments of type HopConstructors in org.apache.sysds.hops.codegen.cplan with parameters of type Hop -
Uses of Hop in org.apache.sysds.hops.codegen.opt
Method parameters in org.apache.sysds.hops.codegen.opt with type arguments of type HopModifier and TypeMethodDescriptionstatic Collection<PlanPartition>PlanAnalyzer.analyzePlanPartitions(CPlanMemoTable memo, ArrayList<Hop> roots, boolean ext) abstract voidPlanSelection.selectPlans(CPlanMemoTable memo, ArrayList<Hop> roots) Given a HOP DAG G, and a set of partial fusions plans P, find the set of optimal, non-conflicting fusion plans P' that applied to G minimizes costs C with P' = \argmin_{p \subseteq P} C(G, p) s.t.voidPlanSelectionFuseAll.selectPlans(CPlanMemoTable memo, ArrayList<Hop> roots) voidPlanSelectionFuseCostBased.selectPlans(CPlanMemoTable memo, ArrayList<Hop> roots) voidPlanSelectionFuseCostBasedV2.selectPlans(CPlanMemoTable memo, ArrayList<Hop> roots) voidPlanSelectionFuseNoRedundancy.selectPlans(CPlanMemoTable memo, ArrayList<Hop> roots) -
Uses of Hop in org.apache.sysds.hops.codegen.template
Methods in org.apache.sysds.hops.codegen.template that return types with arguments of type HopMethods in org.apache.sysds.hops.codegen.template with parameters of type HopModifier and TypeMethodDescriptionvoidCPlanMemoTable.add(Hop hop, CPlanMemoTable.MemoTableEntry me) voidCPlanMemoTable.add(Hop hop, TemplateBase.TemplateType type) voidCPlanMemoTable.add(Hop hop, TemplateBase.TemplateType type, long in1) voidCPlanMemoTable.add(Hop hop, TemplateBase.TemplateType type, long in1, long in2) voidCPlanMemoTable.add(Hop hop, TemplateBase.TemplateType type, long in1, long in2, long in3) voidCPlanMemoTable.addAll(Hop hop, CPlanMemoTable.MemoTableEntrySet P) voidabstract TemplateBase.CloseTypeIndicates if the template must be closed at the current hop; either due to final operations (e.g., aggregate) or unsupported operations.intintTemplateBase.constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) Constructs a single cplan rooted at the given hop, according to the plan given in the memo structure for this particular hop and its recursive inputs.TemplateCell.constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) TemplateMultiAgg.constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) TemplateOuterProduct.constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) TemplateRow.constructCplan(Hop hop, CPlanMemoTable memo, boolean compileLiterals) booleanCPlanMemoTable.containsHop(Hop hop) static booleanTemplateUtils.containsOuterProduct(Hop hop) static booleanTemplateUtils.containsOuterProduct(Hop hop, Hop probe) static CNodeDataTemplateUtils.createCNodeData(Hop hop, boolean compileLiterals) static LinkedList<Long>TemplateUtils.findRemovableConditionalPatternInOuterProduct(Hop hop) abstract booleanIndicates if the template can be expanded to the given hop starting from an open template at the input.booleanbooleanbooleanbooleanstatic Types.AggOpstatic SpoofCellwise.CellTypeTemplateUtils.getCellType(Hop hop) TemplateUtils.getOuterProductType(Hop X, Hop U, Hop V, Hop out) static longTemplateUtils.getRowTemplateMatrixInput(Hop current, CPlanMemoTable memo) static SpoofRowwise.RowTypeTemplateUtils.getRowType(Hop output, Hop... inputs) static booleanTemplateUtils.hasCommonRowTemplateMatrixInput(Hop input1, Hop input2, CPlanMemoTable memo) static booleanTemplateUtils.hasMatrixInput(Hop hop) static booleanTemplateUtils.hasTransposeParentUnderOuterProduct(Hop hop) static booleanTemplateUtils.isBinaryMatrixColVector(Hop hop) static booleanTemplateUtils.isBinaryMatrixRowVector(Hop hop) static booleanTemplateUtils.isColVector(Hop hop) static booleanstatic booleanTemplateUtils.isOperationSupported(Hop h) static booleanTemplateUtils.isValidSingleOperation(Hop hop) static booleanstatic booleanTemplateUtils.isVectorOrScalar(Hop hop) abstract booleanIndicates if the template at the current hop can be expanded by merging another template available for one of its other inputs which is not yet covered by the template of the current hop.booleanbooleanbooleanbooleanabstract booleanIndicates if this template can be opened at the given hop, where hop represents bottom (first operation on the inputs) of the fused operator.booleanbooleanbooleanbooleanvoidCPlanMemoTable.remove(Hop hop, Set<CPlanMemoTable.MemoTableEntry> excludeList) voidCPlanMemoTable.remove(Hop hop, TemplateBase.TemplateType type) static longstatic CNodeTemplateUtils.skipTranspose(CNode cdataOrig, Hop hop, HashMap<Long, CNode> tmp, boolean compileLiterals) static CNodeTemplateUtils.wrapLookupIfNecessary(CNode node, Hop hop) static CNodeTemplateUtils.wrapLookupIfNecessary(CNode node, Hop hop, boolean rowTpl) Method parameters in org.apache.sysds.hops.codegen.template with type arguments of type HopModifier and TypeMethodDescriptionvoidCPlanMemoTable.pruneSuboptimal(ArrayList<Hop> roots) static longConstructors in org.apache.sysds.hops.codegen.template with parameters of type HopModifierConstructorDescriptionHopInputComparator(Hop driver) HopInputComparator(Hop X, Hop B1) MemoTableEntrySet(Hop hop, Hop c, TemplateBase tpl) -
Uses of Hop in org.apache.sysds.hops.cost
Methods in org.apache.sysds.hops.cost with parameters of type HopModifier and TypeMethodDescriptionstatic doubleComputeCost.getHOPComputeCost(Hop currentHop) Get compute cost for given HOP based on the number of floating point operations per output cell and the total number of output cells. -
Uses of Hop in org.apache.sysds.hops.fedplanner
Methods in org.apache.sysds.hops.fedplanner that return HopModifier and TypeMethodDescriptionFederatedMemoTable.FedPlan.getHopRef()FederatedMemoTable.HopCommon.getHopRef()Methods in org.apache.sysds.hops.fedplanner that return types with arguments of type HopModifier and TypeMethodDescriptionFederatedPlannerUtils.getParamMap(FunctionOp funcOp) Return parameter map containing the mapping from parameter name to input hop for all parameters of the function hop.FederatedPlannerUtils.getTransientInputs(Hop currentHop, Map<String, Hop> paramMap, Map<String, Hop> transientWrites, LocalVariableMap localVariableMap) Get transient inputs from either paramMap or transientWrites.FederatedPlanRewireTransTable.rewireStatementBlock(StatementBlock sb, DMLProgram prog, Set<Long> visitedHops, Map<Long, List<Hop>> rewireTable, Map<Long, FederatedMemoTable.HopCommon> hopCommonTable, List<Map<String, List<Hop>>> outerTransTableList, Map<String, List<Hop>> formerTransTable, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, List<org.apache.commons.lang3.tuple.Pair<FederatedRange, FederatedData>> fedMap, Set<Long> unRefTwriteSet, Set<Long> unRefSet, Set<Hop> progRootHopSet, Set<String> fnStack, double computeWeight, double networkWeight, List<org.apache.commons.lang3.tuple.Pair<Long, Double>> parentLoopStack) Methods in org.apache.sysds.hops.fedplanner with parameters of type HopModifier and TypeMethodDescriptionFederatedPlannerUtils.getTransientInputs(Hop currentHop, Map<String, Hop> paramMap, Map<String, Hop> transientWrites, LocalVariableMap localVariableMap) Get transient inputs from either paramMap or transientWrites.static voidFederatedPlannerLogger.logBasicHopInfo(Hop hop, String logPrefix) Logs basic hop information without privacy and FType detailsstatic voidFederatedPlannerLogger.logDataOpFTypeDebug(Hop hop, FTypes.FType fType, String opType, String reason) Logs FType debug information for DataOp operations (FEDERATED, TRANSIENTWRITE, TRANSIENTREAD)static voidFederatedPlannerLogger.logDetailedHopInfo(Hop hop, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, String logPrefix) Logs detailed hop information with dimension and data typestatic voidFederatedPlannerLogger.logFTypeMismatchError(Hop hop, List<Hop> filteredChildHops, Map<Long, FTypes.FType> fTypeMap, FTypes.FType expectedFType, FTypes.FType mismatchedFType, int mismatchIndex) Logs detailed FType mismatch error information for TransRead hopstatic voidFederatedPlannerLogger.logGetFederatedTypeDebug(Hop hop, FTypes.FType returnFType, String reason) Logs debug information for getFederatedType functionstatic voidFederatedPlannerLogger.logHopErrorDetails(Hop hop, String logPrefix, String additionalMessage) Logs detailed hop error information with complete hop detailsstatic voidFederatedPlannerLogger.logHopInfo(Hop hop, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, String logPrefix) Logs hop information including name, hop ID, child hop IDs, privacy constraint, and ftypeMethod parameters in org.apache.sysds.hops.fedplanner with type arguments of type HopModifier and TypeMethodDescriptionstatic voidFederatedPlanCostEstimator.getChildCosts(FederatedMemoTable.HopCommon hopCommon, FederatedMemoTable memoTable, List<Hop> inputHops, double[][] childCumulativeCost, double[] childForwardingCost, List<Hop> lOUTOnlyinputHops, List<Double> lOUTOnlychildCumulativeCost, List<Double> lOUTOnlychildForwardingCost, List<Hop> fOUTOnlyinputHops, List<Double> fOUTOnlychildCumulativeCost, List<Double> fOUTOnlychildForwardingCost) FederatedPlannerUtils.getTransientInputs(Hop currentHop, Map<String, Hop> paramMap, Map<String, Hop> transientWrites, LocalVariableMap localVariableMap) Get transient inputs from either paramMap or transientWrites.static voidFederatedPlannerLogger.logFilteredChildHopsDebug(String hopName, long hopID, List<Hop> filteredChildHops, boolean isEmptyFilteredChildHops, String logPrefix) Logs debugging information for filtered child hops during TransRead rewiringstatic voidFederatedPlannerLogger.logFTypeMismatchError(Hop hop, List<Hop> filteredChildHops, Map<Long, FTypes.FType> fTypeMap, FTypes.FType expectedFType, FTypes.FType mismatchedFType, int mismatchIndex) Logs detailed FType mismatch error information for TransRead hopstatic voidFederatedPlannerLogger.logTransReadRewireDebug(String hopName, long hopID, List<Hop> childHops, boolean isEmptyChildHops, String logPrefix) Logs debugging information for TransRead hop rewiring processstatic voidFederatedMemoTablePrinter.printFedPlanTree(FederatedMemoTable.FedPlan rootFedPlan, Set<Hop> rootHopStatSet, FederatedMemoTable memoTable, double additionalTotalCost) Recursively prints a tree representation of the DAG starting from the given root FedPlan.static voidFederatedPlanRewireTransTable.rewireFunctionDynamic(FunctionStatementBlock function, Map<Long, List<Hop>> rewireTable, Map<Long, FederatedMemoTable.HopCommon> hopCommonTable, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, List<org.apache.commons.lang3.tuple.Pair<FederatedRange, FederatedData>> fedMap, Set<Long> unRefTwriteSet, Set<Long> unRefSet, Set<Hop> progRootHopSet) static voidFederatedPlanRewireTransTable.rewireProgram(DMLProgram prog, Map<Long, List<Hop>> rewireTable, Map<Long, FederatedMemoTable.HopCommon> hopCommonTable, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, List<org.apache.commons.lang3.tuple.Pair<FederatedRange, FederatedData>> fedMap, Set<Long> unRefTwriteSet, Set<Long> unRefSet, Set<Hop> progRootHopSet) FederatedPlanRewireTransTable.rewireStatementBlock(StatementBlock sb, DMLProgram prog, Set<Long> visitedHops, Map<Long, List<Hop>> rewireTable, Map<Long, FederatedMemoTable.HopCommon> hopCommonTable, List<Map<String, List<Hop>>> outerTransTableList, Map<String, List<Hop>> formerTransTable, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, List<org.apache.commons.lang3.tuple.Pair<FederatedRange, FederatedData>> fedMap, Set<Long> unRefTwriteSet, Set<Long> unRefSet, Set<Hop> progRootHopSet, Set<String> fnStack, double computeWeight, double networkWeight, List<org.apache.commons.lang3.tuple.Pair<Long, Double>> parentLoopStack) FederatedPlanRewireTransTable.rewireStatementBlock(StatementBlock sb, DMLProgram prog, Set<Long> visitedHops, Map<Long, List<Hop>> rewireTable, Map<Long, FederatedMemoTable.HopCommon> hopCommonTable, List<Map<String, List<Hop>>> outerTransTableList, Map<String, List<Hop>> formerTransTable, Map<Long, FTypes.Privacy> privacyConstraintMap, Map<Long, FTypes.FType> fTypeMap, List<org.apache.commons.lang3.tuple.Pair<FederatedRange, FederatedData>> fedMap, Set<Long> unRefTwriteSet, Set<Long> unRefSet, Set<Hop> progRootHopSet, Set<String> fnStack, double computeWeight, double networkWeight, List<org.apache.commons.lang3.tuple.Pair<Long, Double>> parentLoopStack) Constructors in org.apache.sysds.hops.fedplanner with parameters of type Hop -
Uses of Hop in org.apache.sysds.hops.ipa
Methods in org.apache.sysds.hops.ipa with parameters of type HopModifier and TypeMethodDescriptionstatic voidIPAPassRemoveUnnecessaryCheckpoints.rRemoveCheckpointReadWrite(Hop hop) -
Uses of Hop in org.apache.sysds.hops.recompile
Methods in org.apache.sysds.hops.recompile that return HopModifier and TypeMethodDescriptionstatic HopRecompiler.deepCopyHopsDag(Hop hops) Deep copy of hops dags for parallel recompilation.Methods in org.apache.sysds.hops.recompile that return types with arguments of type HopModifier and TypeMethodDescriptionRecompiler.deepCopyHopsDag(List<Hop> hops) Deep copy of hops dags for parallel recompilation.Methods in org.apache.sysds.hops.recompile with parameters of type HopModifier and TypeMethodDescriptionstatic HopRecompiler.deepCopyHopsDag(Hop hops) Deep copy of hops dags for parallel recompilation.static voidRecompiler.extractDAGOutputStatistics(Hop hop, LocalVariableMap vars, boolean overwrite) static voidRecompiler.rClearLops(Hop hop) Clearing lops for a given hops includes to (1) remove the reference to constructed lops and (2) clear the exec type (for consistency).static ArrayList<Instruction>Recompiler.recompileHopsDag(Hop hop, LocalVariableMap vars, RecompileStatus status, boolean inplace, boolean replaceLit, long tid) static ArrayList<Instruction>Recompiler.recompileHopsDag2Forced(Hop hop, long tid, Types.ExecType et) static ArrayList<Instruction>Recompiler.recompileHopsDagInstructions(Hop hop) static booleanRecompiler.requiresRecompilation(Hop hop) static intRecompiler.rGetMaxParallelism(Hop hop) static voidRecompiler.rReplaceLiterals(Hop hop, ExecutionContext ec, boolean scalarsOnly) public interface to package local literal replacementstatic voidRecompiler.rReplaceLiterals(Hop hop, LocalVariableMap vars, boolean scalarsOnly) static voidRecompiler.rSetExecType(Hop hop, Types.ExecType etype) static voidRecompiler.rSetMaxParallelism(Hop hop, int k) static voidRecompiler.rUpdateFunctionNames(Hop hop, long pid) static voidRecompiler.rUpdateStatistics(Hop hop, LocalVariableMap vars) Method parameters in org.apache.sysds.hops.recompile with type arguments of type HopModifier and TypeMethodDescriptionRecompiler.deepCopyHopsDag(List<Hop> hops) Deep copy of hops dags for parallel recompilation.static voidRecompiler.extractDAGOutputStatistics(List<Hop> hops, LocalVariableMap vars) static voidRecompiler.extractDAGOutputStatistics(List<Hop> hops, LocalVariableMap vars, boolean overwrite) static ArrayList<Instruction>Recompiler.recompile(StatementBlock sb, ArrayList<Hop> hops, ExecutionContext ec, RecompileStatus status, boolean inplace, boolean replaceLit, boolean updateStats, boolean forceEt, boolean pred, Types.ExecType et, long tid) Core internal primitive for the dynamic recompilation of any DAGs/predicate, including all variants with slightly different configurations.static ArrayList<Instruction>Recompiler.recompileHopsDag(StatementBlock sb, ArrayList<Hop> hops, ExecutionContext ec, RecompileStatus status, boolean inplace, boolean replaceLit, long tid) static ArrayList<Instruction>Recompiler.recompileHopsDag(StatementBlock sb, ArrayList<Hop> hops, LocalVariableMap vars, RecompileStatus status, boolean inplace, boolean replaceLit, long tid) static ArrayList<Instruction>Recompiler.recompileHopsDag2Forced(StatementBlock sb, ArrayList<Hop> hops, long tid, Types.ExecType et) static ArrayList<Instruction>Recompiler.recompileHopsDagInstructions(StatementBlock sb, ArrayList<Hop> hops) static booleanRecompiler.requiresRecompilation(ArrayList<Hop> hops) static intRecompiler.rGetMaxParallelism(List<Hop> hops) static voidRecompiler.rSetMaxParallelism(List<Hop> hops, int k) static voidRecompiler.updateFunctionNames(List<Hop> hops, long pid) -
Uses of Hop in org.apache.sysds.hops.rewrite
Methods in org.apache.sysds.hops.rewrite that return HopModifier and TypeMethodDescriptionstatic HopHopRewriteUtils.createComputeNnz(Hop input) static HopHopRewriteUtils.createDataGenOp(Hop rowInput, boolean tRowInput, Hop colInput, boolean tColInput, double value) static HopHopRewriteUtils.createDataGenOp(Hop input, double value) static HopHopRewriteUtils.createDataGenOp(Hop rowInput, Hop colInput, double value) static HopHopRewriteUtils.createDataGenOpByVal(List<LiteralOp> values, long rows, long cols) static HopHopRewriteUtils.createDataGenOpByVal(Hop rowInput, Hop colInput, Hop dimsInput, Types.DataType dt, Types.ValueType vt, double value) static HopHopRewriteUtils.createPartialTsmmCbind(Hop X, Hop deltaX, Hop tsmmIn1) static HopHopRewriteUtils.createScalarIndexing(Hop input, long rix, long cix) static HopHopRewriteUtils.createValueHop(Hop hop, boolean row) static HopHopRewriteUtils.getBasic1NSequenceMax(Hop hop) static HopHopRewriteUtils.getDataGenOpConstantValue(Hop hop) static HopHopRewriteUtils.getLargestInput(Hop hop) static HopHopRewriteUtils.getOtherInput(Hop hop, Hop input) static HopHopRewriteUtils.rewireAllParentChildReferences(Hop hold, Hop hnew) Replace an old Hop with a replacement Hop.abstract HopHopRewriteRule.rewriteHopDAG(Hop root, ProgramRewriteStatus state) Handle a predicate hop DAG with exactly one root.ProgramRewriter.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteAlgebraicSimplificationDynamic.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteAlgebraicSimplificationStatic.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteBlockSizeAndReblock.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteCommonSubexpressionElimination.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteConstantFolding.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteElementwiseMultChainOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteGPUSpecificOps.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteIndexingVectorization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteInjectSparkPReadCheckpointing.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainOptimizationTranspose.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainWithTransOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteNonScalarPrint.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteQuantizationFusedCompression.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemovePersistentReadWrite.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemoveReadAfterWrite.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemoveUnnecessaryCasts.rewriteHopDAG(Hop root, ProgramRewriteStatus state) static HopRewriteAlgebraicSimplificationStatic.simplifyConstantConjunction(Hop parent, Hop hi, int pos) Methods in org.apache.sysds.hops.rewrite that return types with arguments of type HopModifier and TypeMethodDescriptionProgramRewriter.rewriteHopDAG(ArrayList<Hop> roots, ProgramRewriteStatus state) HopRewriteRule.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) Handle a generic (last-level) hop DAG with multiple roots.RewriteAlgebraicSimplificationDynamic.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteAlgebraicSimplificationStatic.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteBlockSizeAndReblock.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteCommonSubexpressionElimination.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteConstantFolding.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteElementwiseMultChainOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteGPUSpecificOps.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteIndexingVectorization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteInjectSparkPReadCheckpointing.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainOptimizationTranspose.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainWithTransOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteNonScalarPrint.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteQuantizationFusedCompression.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemovePersistentReadWrite.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemoveReadAfterWrite.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemoveUnnecessaryCasts.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) Methods in org.apache.sysds.hops.rewrite with parameters of type HopModifier and TypeMethodDescriptionstatic voidHopRewriteUtils.addChildReference(Hop parent, Hop child) static voidHopRewriteUtils.addChildReference(Hop parent, Hop child, int pos) static booleanHopRewriteUtils.alwaysRequiresReblock(Hop hop) static booleanHopRewriteUtils.checkInputDataTypes(Hop hop, Types.DataType... dt) static voidHopRewriteUtils.cleanupUnreferenced(Hop... inputs) static intHopRewriteUtils.compareSize(Hop hop1, Hop hop2) Compares the size of outputs from hop1 and hop2, in terms of number of matrix cells.static booleanHopRewriteUtils.containsInput(Hop current, Hop probe) static voidHopRewriteUtils.copyLineNumbers(Hop src, Hop dest) static voidHopRewriteUtils.copyLineNumbers(MatrixObject mo, Hop tread) static voidHopRewriteUtils.copyLineNumbers(MatrixBlock mb, Hop tread) static AggUnaryOpHopRewriteUtils.createAggUnaryOp(Hop input, String op) static AggUnaryOpHopRewriteUtils.createAggUnaryOp(Hop input, Types.AggOp op, Types.Direction dir) static BinaryOpHopRewriteUtils.createBinary(Hop input1, Hop input2, String op) static BinaryOpHopRewriteUtils.createBinary(Hop input1, Hop input2, Types.OpOp2 op) static BinaryOpHopRewriteUtils.createBinary(Hop input1, Hop input2, Types.OpOp2 op, boolean outer) static BinaryOpHopRewriteUtils.createBinaryMinus(Hop input) static HopHopRewriteUtils.createComputeNnz(Hop input) static HopHopRewriteUtils.createDataGenOp(Hop rowInput, boolean tRowInput, Hop colInput, boolean tColInput, double value) static HopHopRewriteUtils.createDataGenOp(Hop input, double value) static HopHopRewriteUtils.createDataGenOp(Hop rowInput, Hop colInput, double value) static HopHopRewriteUtils.createDataGenOpByVal(Hop rowInput, Hop colInput, Hop dimsInput, Types.DataType dt, Types.ValueType vt, double value) static DataOpHopRewriteUtils.createDataOp(String name, Hop in, Types.OpOpData type) static IndexingOpHopRewriteUtils.createIndexingOp(Hop input, long rix, long cix) static IndexingOpHopRewriteUtils.createIndexingOp(Hop input, long rl, long ru, long cl, long cu) static IndexingOpHopRewriteUtils.createIndexingOp(Hop input, Hop batchsize) static IndexingOpstatic LeftIndexingOpstatic AggBinaryOpHopRewriteUtils.createMatrixMultiply(Hop left, Hop right) static NaryOpHopRewriteUtils.createNary(Types.OpOpN op, Hop... inputs) static ParameterizedBuiltinOpHopRewriteUtils.createParameterizedBuiltinOp(Hop input, LinkedHashMap<String, Hop> args, Types.ParamBuiltinOp op) static HopHopRewriteUtils.createPartialTsmmCbind(Hop X, Hop deltaX, Hop tsmmIn1) static ReorgOpHopRewriteUtils.createReorg(Hop input, String rop) static ReorgOpHopRewriteUtils.createReorg(Hop input, Types.ReOrgOp rop) static HopHopRewriteUtils.createScalarIndexing(Hop input, long rix, long cix) static DataGenOpHopRewriteUtils.createSeqDataGenOp(Hop input) static DataGenOpHopRewriteUtils.createSeqDataGenOp(Hop input, boolean asc) static DataGenOpHopRewriteUtils.createSeqDataGenOp(Hop proxy, Hop from, Hop to, Hop incr) static AggUnaryOpstatic TernaryOpHopRewriteUtils.createTernary(Hop mleft, Hop smid, Hop mright, String opcode) static TernaryOpHopRewriteUtils.createTernary(Hop mleft, Hop smid, Hop mright, Types.OpOp3 op) static TernaryOpHopRewriteUtils.createTernary(Hop in1, Hop in2, Hop in3, Hop in4, Hop in5, Types.OpOp3 op) static DataOpHopRewriteUtils.createTransientRead(String name, Hop h) static DataOpHopRewriteUtils.createTransientWrite(String name, Hop in) static ReorgOpHopRewriteUtils.createTranspose(Hop input) static AggBinaryOpHopRewriteUtils.createTsmm(Hop input, boolean left) static UnaryOpHopRewriteUtils.createUnary(Hop input, String type) static UnaryOpHopRewriteUtils.createUnary(Hop input, Types.OpOp1 type) static HopHopRewriteUtils.createValueHop(Hop hop, boolean row) static HopHopRewriteUtils.getBasic1NSequenceMax(Hop hop) static intHopRewriteUtils.getChildReferencePos(Hop parent, Hop child) static HopHopRewriteUtils.getDataGenOpConstantValue(Hop hop) static longHopRewriteUtils.getIntValueSafe(Hop op) static HopHopRewriteUtils.getLargestInput(Hop hop) static longHopRewriteUtils.getMaxInputDim(Hop hop, boolean dim1) static longHopRewriteUtils.getMaxNcolInput(Hop hop) static longHopRewriteUtils.getMaxNrowInput(Hop hop) static HopHopRewriteUtils.getOtherInput(Hop hop, Hop input) static longHopRewriteUtils.getSumValidInputDims(Hop hop, boolean dim1) static longHopRewriteUtils.getSumValidInputNnz(Hop hop) static booleanHopRewriteUtils.hasListInputs(Hop hop) static booleanHopRewriteUtils.hasOnlyUnaryBinaryParents(Hop hop, boolean disallowLhs) static booleanHopRewriteUtils.hasOnlyWriteParents(Hop hop, boolean inclTransient, boolean inclPersistent) static booleanHopRewriteUtils.hasValidInputDims(Hop hop, boolean dim1) static booleanHopRewriteUtils.hasValidInputNnz(Hop hop) static booleanHopRewriteUtils.isAggUnaryOp(Hop hop, Types.AggOp... op) static booleanHopRewriteUtils.isAggUnaryOp(Hop hop, Types.AggOp op, Types.Direction dir) static booleanHopRewriteUtils.isBasic1NSequence(Hop hop) static booleanHopRewriteUtils.isBasic1NSequence(Hop seq, Hop input, boolean row) static booleanHopRewriteUtils.isBasicN1Sequence(Hop hop) static booleanHopRewriteUtils.isBinary(Hop hop, Types.OpOp2 type) static booleanHopRewriteUtils.isBinary(Hop hop, Types.OpOp2... types) static booleanHopRewriteUtils.isBinary(Hop hop, Types.OpOp2 type, int maxParents) static booleanHopRewriteUtils.isBinaryMatrixColVectorOperation(Hop hop) static booleanHopRewriteUtils.isBinaryMatrixMatrixOperation(Hop hop) static booleanHopRewriteUtils.isBinaryMatrixMatrixOperationWithSharedInput(Hop hop) static booleanHopRewriteUtils.isBinaryMatrixRowVectorOperation(Hop hop) static booleanHopRewriteUtils.isBinaryMatrixScalar(Hop hop, Types.OpOp2 type, double val) static booleanHopRewriteUtils.isBinaryMatrixScalarOperation(Hop hop) static booleanHopRewriteUtils.isBinaryPPred(Hop hop) static booleanHopRewriteUtils.isBinarySparseSafe(Hop hop) static booleanHopRewriteUtils.isColumnRightIndexing(Hop hop) static booleanHopRewriteUtils.isConsecutiveIndex(Hop index, Hop index2) static booleanHopRewriteUtils.isData(Hop hop, Types.OpOpData type) static booleanHopRewriteUtils.isData(Hop hop, Types.OpOpData... types) static booleanHopRewriteUtils.isData(Hop hop, Types.OpOpData type, Types.DataType dt) static booleanHopRewriteUtils.isDataGenOp(Hop hop, Types.OpOpDG... ops) static booleanHopRewriteUtils.isDataGenOpWithConstantValue(Hop hop) static booleanHopRewriteUtils.isDataGenOpWithConstantValue(Hop hop, double value) static booleanHopRewriteUtils.isDataGenOpWithLiteralInputs(Hop hop, Types.OpOpDG... ops) static booleanHopRewriteUtils.isDataGenOpWithNonDeterminism(Hop hop) static booleanstatic booleanHopRewriteUtils.isDimsKnown(Hop hop) static booleanHopRewriteUtils.isDnn(Hop hop, Types.OpOpDnn type) static booleanHopRewriteUtils.isDnn(Hop hop, Types.OpOpDnn... types) static booleanstatic booleanHopRewriteUtils.isEqualSize(Hop hop1, Hop hop2) static booleanHopRewriteUtils.isEqualSize(Hop hop1, Hop... hops) static booleanHopRewriteUtils.isEqualValue(Hop hop1, Hop hop2) static booleanHopRewriteUtils.isLiteralOfValue(Hop hop, boolean val) static booleanHopRewriteUtils.isLiteralOfValue(Hop hop, double val) static booleanHopRewriteUtils.isLiteralOfValue(Hop hop, Double... val) static booleanHopRewriteUtils.isLiteralOfValue(Hop hop, String val) static booleanHopRewriteUtils.isMatrixMultiply(Hop hop) static booleanHopRewriteUtils.isNary(Hop hop, Types.OpOpN type) static booleanHopRewriteUtils.isNary(Hop hop, Types.OpOpN... types) static booleanHopRewriteUtils.isNonZeroIndicator(Hop pred, Hop hop) static booleanHopRewriteUtils.isNotMatrixVectorBinaryOperation(Hop hop) static booleanHopRewriteUtils.isOuterBinary(Hop hop) static booleanHopRewriteUtils.isOuterProductLikeMM(Hop hop) static booleanHopRewriteUtils.isParameterizedBuiltinOp(Hop hop, Types.ParamBuiltinOp type) static booleanHopRewriteUtils.isParameterizedBuiltinOp(Hop hop, Types.ParamBuiltinOp... types) static booleanHopRewriteUtils.isRemoveEmpty(Hop hop) static booleanHopRewriteUtils.isRemoveEmpty(Hop hop, boolean rows) static booleanHopRewriteUtils.isReorg(Hop hop, Types.ReOrgOp type) static booleanHopRewriteUtils.isReorg(Hop hop, Types.ReOrgOp... types) static booleanHopRewriteUtils.isScalarMatrixBinaryMult(Hop hop) static booleanHopRewriteUtils.isSingleBlock(Hop hop) static booleanHopRewriteUtils.isSingleBlock(Hop hop, boolean cols) Checks our BLOCKSIZE CONSTRAINT, w/ awareness of forced single node execution mode.static booleanHopRewriteUtils.isSizeExpressionOf(Hop size, Hop input, boolean row) static booleanstatic booleanstatic booleanstatic booleanstatic booleanHopRewriteUtils.isTerminalHop(Hop hop) Check if given hop is of a terminal type.static booleanHopRewriteUtils.isTernary(Hop hop, Types.OpOp3 type) static booleanHopRewriteUtils.isTernary(Hop hop, Types.OpOp3... types) static booleanHopRewriteUtils.isTransformEncode(Hop hop) static booleanHopRewriteUtils.isTransposeOfItself(Hop hop1, Hop hop2) static booleanHopRewriteUtils.isTransposeOperation(Hop hop) static booleanHopRewriteUtils.isTransposeOperation(Hop hop, int maxParents) static booleanstatic booleanHopRewriteUtils.isTsmmInput(Hop input) static booleanHopRewriteUtils.isUnary(Hop hop, Types.OpOp1 type) static booleanHopRewriteUtils.isUnary(Hop hop, Types.OpOp1... types) static booleanHopRewriteUtils.isUnary(Hop hop, Types.OpOp1 type, int maxParents) static booleanHopRewriteUtils.isUnnecessaryRightIndexing(Hop hop) static booleanHopRewriteUtils.knownParamservFunctions(Hop hop) static booleanHopRewriteUtils.knownParamservFunctions(Hop hop, DMLProgram prog) static booleanHopRewriteUtils.rContainsRead(Hop root, String var, boolean includeMetaOp) static voidHopRewriteUtils.refreshOutputParameters(Hop hnew, Hop hold) static voidHopRewriteUtils.removeAllChildReferences(Hop parent) static voidHopRewriteUtils.removeChildReference(Hop parent, Hop child) static voidHopRewriteUtils.removeChildReferenceByPos(Hop parent, Hop child, int posChild) static voidHopRewriteUtils.replaceChildReference(Hop parent, Hop inOld, Hop inNew) static voidHopRewriteUtils.replaceChildReference(Hop parent, Hop inOld, Hop inNew, int pos) static voidHopRewriteUtils.replaceChildReference(Hop parent, Hop inOld, Hop inNew, int pos, boolean refresh) static HopHopRewriteUtils.rewireAllParentChildReferences(Hop hold, Hop hnew) Replace an old Hop with a replacement Hop.abstract HopHopRewriteRule.rewriteHopDAG(Hop root, ProgramRewriteStatus state) Handle a predicate hop DAG with exactly one root.ProgramRewriter.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteAlgebraicSimplificationDynamic.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteAlgebraicSimplificationStatic.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteBlockSizeAndReblock.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteCommonSubexpressionElimination.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteConstantFolding.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteElementwiseMultChainOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteGPUSpecificOps.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteIndexingVectorization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteInjectSparkPReadCheckpointing.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainOptimizationTranspose.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteMatrixMultChainWithTransOptimization.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteNonScalarPrint.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteQuantizationFusedCompression.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemovePersistentReadWrite.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemoveReadAfterWrite.rewriteHopDAG(Hop root, ProgramRewriteStatus state) RewriteRemoveUnnecessaryCasts.rewriteHopDAG(Hop root, ProgramRewriteStatus state) static booleanHopRewriteUtils.rHasSimpleReadChain(Hop root, String var) static booleanRewriteCompressedReblock.satisfiesAggressiveCompressionCondition(Hop hop) static booleanRewriteCompressedReblock.satisfiesCompressionCondition(Hop hop) static booleanRewriteCompressedReblock.satisfiesSizeConstraintsForCompression(Hop hop) static voidHopRewriteUtils.setOutputParameters(Hop hop, long rlen, long clen, int blen, long nnz) static voidHopRewriteUtils.setOutputParametersForScalar(Hop hop) static HopRewriteAlgebraicSimplificationStatic.simplifyConstantConjunction(Hop parent, Hop hi, int pos) static voidHopRewriteUtils.updateHopCharacteristics(Hop hop, int blen, Hop src) static voidHopRewriteUtils.updateHopCharacteristics(Hop hop, int blen, MemoTable memo, Hop src) static voidHopDagValidator.validateHopDag(Hop root, HopRewriteRule rule) Method parameters in org.apache.sysds.hops.rewrite with type arguments of type HopModifier and TypeMethodDescriptionstatic booleanHopRewriteUtils.checkAvgRowsGteCols(List<Hop> list) static booleanHopRewriteUtils.checkConsistentRows(List<Hop> list1, List<Hop> list2) static booleanHopRewriteUtils.containsOp(List<Hop> candidates, Class<? extends Hop> clazz) static booleanHopRewriteUtils.containsOp(List<Hop> candidates, Class<? extends Hop> clazz) static booleanHopRewriteUtils.containsSecondOrderBuiltin(List<Hop> roots) static booleanHopRewriteUtils.containsTransposeOperation(List<Hop> hops) static ParameterizedBuiltinOpHopRewriteUtils.createParameterizedBuiltinOp(Hop input, LinkedHashMap<String, Hop> args, Types.ParamBuiltinOp op) static ReorgOpHopRewriteUtils.createReorg(List<Hop> inputs, Types.ReOrgOp rop) ProgramRewriter.rewriteHopDAG(ArrayList<Hop> roots, ProgramRewriteStatus state) HopRewriteRule.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) Handle a generic (last-level) hop DAG with multiple roots.RewriteAlgebraicSimplificationDynamic.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteAlgebraicSimplificationStatic.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteBlockSizeAndReblock.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteCommonSubexpressionElimination.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteConstantFolding.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteElementwiseMultChainOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteGPUSpecificOps.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteIndexingVectorization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteInjectSparkPReadCheckpointing.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainOptimizationTranspose.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteMatrixMultChainWithTransOptimization.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteNonScalarPrint.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteQuantizationFusedCompression.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemovePersistentReadWrite.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemoveReadAfterWrite.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) RewriteRemoveUnnecessaryCasts.rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state) static voidHopDagValidator.validateHopDag(ArrayList<Hop> roots, HopRewriteRule rule) -
Uses of Hop in org.apache.sysds.parser
Methods in org.apache.sysds.parser that return HopModifier and TypeMethodDescriptionForStatementBlock.getFromHops()ForStatementBlock.getIncrementHops()IfStatementBlock.getPredicateHops()WhileStatementBlock.getPredicateHops()ForStatementBlock.getToHops()Methods in org.apache.sysds.parser that return types with arguments of type HopMethods in org.apache.sysds.parser with parameters of type HopModifier and TypeMethodDescriptionvoidForStatementBlock.setFromHops(Hop hops) voidDMLTranslator.setIdentifierParams(Hop h, Identifier id) voidForStatementBlock.setIncrementHops(Hop hops) voidIfStatementBlock.setPredicateHops(Hop hops) voidWhileStatementBlock.setPredicateHops(Hop hops) voidMethod parameters in org.apache.sysds.parser with type arguments of type Hop -
Uses of Hop in org.apache.sysds.runtime.compress.workload
Methods in org.apache.sysds.runtime.compress.workload that return HopModifier and TypeMethodDescriptionOp.getHop()OpMetadata.getParent()WTreeRoot.getRoot()Get the Root hop instruction, that is producing a result used in the rest of the tree.Constructors in org.apache.sysds.runtime.compress.workload with parameters of type Hop -
Uses of Hop in org.apache.sysds.runtime.controlprogram
Methods in org.apache.sysds.runtime.controlprogram with parameters of type HopModifier and TypeMethodDescriptionProgramBlock.executePredicate(ArrayList<Instruction> inst, Hop hops, boolean requiresRecompile, Types.ValueType retType, ExecutionContext ec) Executes given predicate instructions (incl recompilation if required) -
Uses of Hop in org.apache.sysds.runtime.controlprogram.parfor.opt
Methods in org.apache.sysds.runtime.controlprogram.parfor.opt that return HopModifier and TypeMethodDescriptionOptTree.getMappedHop(long id) OptTreePlanMapping.getMappedHop(long id) Methods in org.apache.sysds.runtime.controlprogram.parfor.opt with parameters of type HopModifier and TypeMethodDescriptionlongOptTreePlanMapping.putHopMapping(Hop hops, OptNode n) OptTreeConverter.rCreateAbstractOptNodes(Hop hop, LocalVariableMap vars, OptTreePlanMapping hlMap, Set<String> memo) Method parameters in org.apache.sysds.runtime.controlprogram.parfor.opt with type arguments of type HopModifier and TypeMethodDescriptionOptTreeConverter.createAbstractOptNodes(ArrayList<Hop> hops, LocalVariableMap vars, OptTreePlanMapping hlMap, Set<String> memo) -
Uses of Hop in org.apache.sysds.runtime.lineage
Methods in org.apache.sysds.runtime.lineage with parameters of type HopModifier and TypeMethodDescriptionstatic voidLineageItemUtils.constructLineageFromHops(Hop[] roots, String claName, Hop[] inputs, HashMap<Long, Hop> spoofmap) static voidLineageItemUtils.rConstructLineageFromHops(Hop root, Hop[] inputs, Map<Long, LineageItem> operands, HashMap<Long, Hop> spoofmap) Method parameters in org.apache.sysds.runtime.lineage with type arguments of type HopModifier and TypeMethodDescriptionstatic voidLineageItemUtils.constructLineageFromHops(Hop[] roots, String claName, Hop[] inputs, HashMap<Long, Hop> spoofmap) static voidLineageItemUtils.rConstructLineageFromHops(Hop root, Hop[] inputs, Map<Long, LineageItem> operands, HashMap<Long, Hop> spoofmap) -
Uses of Hop in org.apache.sysds.runtime.matrix.data
Methods in org.apache.sysds.runtime.matrix.data with parameters of type Hop -
Uses of Hop in org.apache.sysds.runtime.util
Methods in org.apache.sysds.runtime.util that return types with arguments of type HopModifier and TypeMethodDescriptionAutoDiff.constructHopsNR(LineageItem item, Map<Long, Hop> operands, Hop mo, ArrayList<String> names) Methods in org.apache.sysds.runtime.util with parameters of type HopModifier and TypeMethodDescriptionAutoDiff.constructHopsNR(LineageItem item, Map<Long, Hop> operands, Hop mo, ArrayList<String> names) Method parameters in org.apache.sysds.runtime.util with type arguments of type HopModifier and TypeMethodDescriptionAutoDiff.constructHopsNR(LineageItem item, Map<Long, Hop> operands, Hop mo, ArrayList<String> names) -
Uses of Hop in org.apache.sysds.utils
Methods in org.apache.sysds.utils with parameters of type HopMethod parameters in org.apache.sysds.utils with type arguments of type HopModifier and TypeMethodDescriptionstatic StringExplain.explainHops(List<Hop> hops) static StringExplain.explainHops(List<Hop> hops, int level)