Class RewriteConstantFolding

java.lang.Object
org.apache.sysds.hops.rewrite.HopRewriteRule
org.apache.sysds.hops.rewrite.RewriteConstantFolding

public class RewriteConstantFolding extends HopRewriteRule
Rule: Constant Folding. For all statement blocks, eliminate simple binary expressions of literals within dags by computing them and replacing them with a new Literal op once. For the moment, this only applies within a dag, later this should be extended across statements block (global, inter-procedure).
  • Constructor Details

    • RewriteConstantFolding

      public RewriteConstantFolding()
  • Method Details