code: public void scale(int scale){
          parameterSize *= scale;
          updaterStateSize *= scale;
          workingMemoryFixedInference *= scale;
          workingMemoryVariableInference *= scale;
          cacheModeMemFixed = scaleEntries(cacheModeMemFixed, scale);
          cacheModeMemVariablePerEx = scaleEntries(cacheModeMemVariablePerEx, scale);
      }
docs: Multiply all memory usage by the specified scaling factor
  
  @param scale Scale factor to multiply all memory usage by