Skip to content

Commit 5f6b1e6

Browse files
author
Jessica Shi
committed
add doc link, tweak redundant indices
1 parent c9da13f commit 5f6b1e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

codegen.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,13 @@ <h6 style="margin-bottom: 0px; margin-top: 18px">Input a tensor algebra expressi
133133
<div class="mdl-grid" style="padding-top: 6px">
134134
<div class="mdl-layout-spacer"></div>
135135
<div class="mdl-cell mdl-cell--9-col">
136-
<!-- <div>
137-
<span style="font-size: 14px;margin-left: 50px">Documentation on the scheduling language can be found here [URL to come].</span>
138-
</div> -->
139136
<div>
140137
<button id="btnSchedule" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect demo-btn" style="margin-bottom: 10px; width: 30%">
141138
Add Scheduling Command
142139
</button>
143140

141+
<span style="font-size: 12px; margin-left: 30px">Documentation on the scheduling language can be found <a href="http://tensor-compiler.org/docs/scheduling/index.html">here</a>.</span>
142+
144143
<div id="btnDefaults" style="float: right">
145144
<button id="btnCPU" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect demo-btn" style="margin-right: 10px; width: inherit">
146145
SpMV CPU

javascripts/demo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ function demo() {
189189
var command = model.schedule[i]["command"];
190190
var parameters = model.schedule[i]["parameters"];
191191
for (var j = 0; j < parameters.length; ++j) {
192-
if (parameters[j] && model.isParameterType(command, j, "default")) {
193-
indices.push(parameters[j]);
192+
var index = parameters[j];
193+
if (index && model.isParameterType(command, j, "default") && !indices.includes(index)) {
194+
indices.push(index);
194195
}
195196
}
196197
}

0 commit comments

Comments
 (0)