Class RewriteInjectOOCTee

java.lang.Object
org.apache.sysds.hops.rewrite.StatementBlockRewriteRule
org.apache.sysds.hops.rewrite.RewriteInjectOOCTee

public class RewriteInjectOOCTee extends StatementBlockRewriteRule
This Rewrite rule injects a Tee Operator for specific Out-Of-Core (OOC) patterns where a value or an intermediate result is shared twice. Since for OOC we data streams can only be consumed once.

Pattern identified t(X) %*% X, where the data X will be shared by t(X) and %*% multiplication.

The rewrite uses a stable two-pass approach: 1. Find candidates (Read-Only): Traverse the entire HOP DAG to identify candidates the fit the target pattern. 2. Apply Rewrites (Modification): Iterate over the collected candidate and put TeeOp, and safely rewire the graph.
  • Field Details

    • APPLY_ONLY_XtX_PATTERN

      public static boolean APPLY_ONLY_XtX_PATTERN
  • Constructor Details

    • RewriteInjectOOCTee

      public RewriteInjectOOCTee()
  • Method Details