Repository navigation
Expand file tree
/
Copy pathplayground.html
More file actions
61 lines (57 loc) · 2.13 KB
/
Copy pathplayground.html
File metadata and controls
61 lines (57 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>rustnn WebNN Demo</title>
<link rel="icon" href="data:,">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav class="nav"><a href="index.html">Embeddings</a> · <strong>Graph playground</strong></nav>
<h1>rustnn <span class="muted">on</span> browser WebNN</h1>
<p class="lede">
rustnn, compiled to WebAssembly, parses the <code>.webnn</code> graph and replays it
through this page's <code>MLGraphBuilder</code>. The browser compiles and runs it.
</p>
<div id="env" class="env"></div>
</header>
<main>
<section class="panel">
<div class="panel-head">
<h2>Graph</h2>
<div class="controls">
<label>Example
<select id="example"></select>
</label>
<label>Context
<select id="power">
<option value="default">accelerated, default</option>
<option value="high-performance">accelerated, high performance</option>
<option value="low-power">accelerated, low power</option>
<option value="cpu">not accelerated</option>
</select>
</label>
</div>
</div>
<textarea id="source" spellcheck="false" aria-label=".webnn graph source"></textarea>
<div class="actions">
<button id="run" class="primary">Build & run</button>
<button id="randomize">Randomize inputs</button>
<span id="status" class="status" role="status"></span>
</div>
<div id="ops" class="ops"></div>
</section>
<section class="panel">
<div class="panel-head"><h2>Inputs</h2></div>
<div id="inputs" class="tensors"><p class="muted">Pick an example.</p></div>
</section>
<section class="panel">
<div class="panel-head"><h2>Outputs</h2><span id="timing" class="muted"></span></div>
<div id="outputs" class="tensors"><p class="muted">Run the graph to see results.</p></div>
</section>
</main>
<script type="module" src="main.js"></script>
</body>
</html>