Skip to content

Commit 39af800

Browse files
committed
Minor fixes for documentation and legacy test removal
1 parent 8bd1499 commit 39af800

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/main/java/org/apache/sysds/hops/rewriter/RewriterFramework.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void setupDataDrivenSearch() {
103103

104104
/**
105105
* Initializes the rewriter framework
106-
* @param allowInversionCanonicalization if the conversion from a/c => a*(c^-1) should be applied (during canonicalization)
106+
* @param allowInversionCanonicalization if the conversion from a/c => a*(c^-1) should be applied (during canonicalization)
107107
* @param pruneNovelExpressions if only equivalence groups should be stored, where at least one expression was in the data-set
108108
*/
109109
public void init(boolean allowInversionCanonicalization, boolean pruneNovelExpressions) {
@@ -199,7 +199,7 @@ public void systematicSearch(int maxDepth) {
199199
/**
200200
* Performs a systematic search
201201
* @param maxDepth the maximum number of (virtual) operands
202-
* @param includeDuplicateReferences if the search space should be extended to contain a shared variable (e.g. +(A,B) => [+(A,B), +(A,A)])
202+
* @param includeDuplicateReferences if the search space should be extended to contain a shared variable (e.g. +(A,B) => [+(A,B), +(A,A)])
203203
*/
204204
public void systematicSearch(int maxDepth, boolean includeDuplicateReferences) {
205205
systematicSearch(0, RewriterSearchUtils.getMaxSearchNumberForNumOps(maxDepth), includeDuplicateReferences, false);
@@ -209,7 +209,7 @@ public void systematicSearch(int maxDepth, boolean includeDuplicateReferences) {
209209
* Performs a systematic search
210210
* @param fromIdx the start index
211211
* @param toIdx the end index
212-
* @param includeDuplicateReferences if the search space should be extended to contain a shared variable (e.g. +(A,B) => [+(A,B), +(A,A)])
212+
* @param includeDuplicateReferences if the search space should be extended to contain a shared variable (e.g. +(A,B) => [+(A,B), +(A,A)])
213213
* @param includeRowColVectors if row-vectors and col-vectors should be included in the search (note that the data-driven approach does not support this)
214214
*/
215215
public void systematicSearch(int fromIdx, int toIdx, boolean includeDuplicateReferences, boolean includeRowColVectors) {
@@ -408,7 +408,7 @@ public RewriterRuleSet getUnconditionalRuleSet() {
408408

409409
/**
410410
*
411-
* @return the conditional rule set (rules where the optimal expression may change, e.g., (A*B)+(A*C) <=> A*(B+C))
411+
* @return the conditional rule set (rules where the optimal expression may change, e.g., (A*B)+(A*C) &lt;=&gt; A*(B+C))
412412
*/
413413
public RewriterRuleSet getConditionalRuleSet() {
414414
return conditionalRuleSet;

src/test/java/org/apache/sysds/test/component/codegen/rewrite/RewriterTopologySortTests.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,6 @@ public void testSimpleEquivalence7() {
141141
assert stmt.match(RewriterStatement.MatcherContext.exactMatch(ctx, stmt2, stmt));
142142
}
143143

144-
@Test
145-
public void testSimpleEquivalence8() {
146-
RewriterStatement stmt = RewriterUtils.parse("+(*(a, b), f(b, a))", ctx, "FLOAT:a,b");
147-
RewriterStatement stmt2 = RewriterUtils.parse("+(*(b, a), f(b, a))", ctx, "FLOAT:a,b");
148-
stmt = converter.apply(stmt);
149-
stmt2 = converter.apply(stmt2);
150-
151-
LOG.info("==========");
152-
LOG.info(stmt.toParsableString(ctx, true));
153-
LOG.info("==========");
154-
LOG.info(stmt2.toParsableString(ctx, true));
155-
assert stmt.match(RewriterStatement.MatcherContext.exactMatch(ctx, stmt2, stmt));
156-
}
157-
158144
@Test
159145
public void testSimpleEquivalence9() {
160146
RewriterStatement stmt = RewriterUtils.parse("+(*(-(a), b), *(a, a))", ctx, "FLOAT:a,b");

0 commit comments

Comments
 (0)