Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-2484

AutoEncoder codegen failing w/ enabled rewrites

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 1.2
    • None
    • None

    Description

      public final class TMP13 extends SpoofRowwise { 
        public TMP13() {
          super(RowType.NO_AGG, -1, false, 2);
        }
        protected void genexec(double[] a, int ai, SideInput[] b, double[] scalars, double[] c, int ci, int len, long grix, int rix) { 
          double TMP5 = getValue(b[0], n, rix, cix);
          double TMP6 = getValue(b[1], n, rix, cix);
          double TMP7 = TMP5 - scalars[0] * TMP6;
          double[] TMP8 = LibSpoofPrimitives.vectPlusWrite(a, TMP7, ai, len);
          LibSpoofPrimitives.vectWrite(TMP8, c, ci, TMP8.length);
        }
        protected void genexec(double[] avals, int[] aix, int ai, SideInput[] b, double[] scalars, double[] c, int ci, int alen, int len, long grix, int rix) { 
          double TMP9 = getValue(b[0], n, rix, cix);
          double TMP10 = getValue(b[1], n, rix, cix);
          double TMP11 = TMP9 - scalars[0] * TMP10;
          double[] TMP12 = LibSpoofPrimitives.vectPlusWrite(avals, TMP11, aix, ai, alen, len);
          LibSpoofPrimitives.vectWrite(TMP12, c, ci, TMP12.length);
        }
      }
      
      Caused by: org.apache.sysml.runtime.DMLRuntimeException: Failed to compile class codegen.TMP13.
      	at org.apache.sysml.runtime.codegen.CodegenUtils.compileClassJanino(CodegenUtils.java:185)
      	at org.apache.sysml.runtime.codegen.CodegenUtils.compileClass(CodegenUtils.java:80)
      	at org.apache.sysml.hops.codegen.SpoofCompiler.optimize(SpoofCompiler.java:402)
      	... 40 more
      Caused by: org.codehaus.commons.compiler.CompileException: Line 13, Column 35: Unknown variable or type "n"
      	at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:11821)
      	at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6521)
      

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: