File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1115,16 +1115,15 @@ static IndexStmt optimizeSpMM(IndexStmt stmt) {
11151115 }
11161116
11171117 TensorVar B = Baccess.getTensorVar ();
1118- if (B.getFormat ().getModeFormats ()[0 ].getName () != " dense" ||
1119- B.getFormat ().getModeFormats ()[1 ].getName () != " compressed" ||
1120- B.getFormat ().getModeOrdering ()[0 ] != 0 ||
1118+ if (B.getFormat ().getModeOrdering ()[0 ] != 0 ||
11211119 B.getFormat ().getModeOrdering ()[1 ] != 1 ) {
11221120 return stmt;
11231121 }
11241122
1123+ // We need random access into the first mode or this tensor in order to perform a linear combination of rows
1124+ // algorithm. (I think?)
11251125 TensorVar C = Caccess.getTensorVar ();
1126- if (C.getFormat ().getModeFormats ()[0 ].getName () != " dense" ||
1127- C.getFormat ().getModeFormats ()[1 ].getName () != " compressed" ||
1126+ if (C.getFormat ().getModeFormats ()[0 ].getName () == " compressed" ||
11281127 C.getFormat ().getModeOrdering ()[0 ] != 0 ||
11291128 C.getFormat ().getModeOrdering ()[1 ] != 1 ) {
11301129 return stmt;
You can’t perform that action at this time.
0 commit comments