MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / renderLogits

Function renderLogits

iris/ui.js:105–112  ·  view source on GitHub ↗
(logits, parentElement)

Source from the content-addressed store, hash-verified

103}
104
105function renderLogits(logits, parentElement) {
106 while (parentElement.firstChild) {
107 parentElement.removeChild(parentElement.firstChild);
108 }
109 logitsToSpans(logits).map(logitSpan => {
110 parentElement.appendChild(logitSpan);
111 });
112}
113
114export function renderLogitsForManualInput(logits) {
115 const logitsElement = document.getElementById('logits');

Callers 1

Calls 1

logitsToSpansFunction · 0.70

Tested by

no test coverage detected