Skip to content

Commit 20aa440

Browse files
committed
highlight that recompilation was not successfull
1 parent a97ceff commit 20aa440

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/apache/sysds/runtime/instructions/cp/CtableCPInstruction.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public void processInstruction(ExecutionContext ec) {
132132
case CTABLE_EXPAND_SCALAR_WEIGHT: //(VECTOR)
133133
// F = ctable(seq,A) or F = ctable(seq,B,1)
134134
// ignore first argument
135+
if(input1.getDataType() == DataType.MATRIX){
136+
LOG.warn("rewrite for table expand not activated please fix");
137+
}
135138
matBlock2 = ec.getMatrixInput(input2.getName());
136139
cst1 = ec.getScalarInput(input3).getDoubleValue();
137140
resultBlock = LibMatrixReorg.fusedSeqRexpand(matBlock2.getNumRows(), matBlock2, cst1, resultBlock, true, _k);
@@ -153,7 +156,7 @@ public void processInstruction(ExecutionContext ec) {
153156
throw new DMLRuntimeException("Encountered an invalid ctable operation ("+ctableOp+") while executing instruction: " + this.toString());
154157
}
155158

156-
if(input1.getDataType() == DataType.MATRIX)
159+
if(input1.getDataType() == DataType.MATRIX && ctableOp != Ctable.OperationTypes.CTABLE_EXPAND_SCALAR_WEIGHT )
157160
ec.releaseMatrixInput(input1.getName());
158161
if(input2.getDataType() == DataType.MATRIX)
159162
ec.releaseMatrixInput(input2.getName());

0 commit comments

Comments
 (0)