pt = tensor => {
let verbose = false;
let render = () => html`<div style='cursor:zoom-${verbose ? 'out' : 'in'}'>
<pre class='hljs-tfjs'>${hljs.highlight('tfjs', tensor.toString(verbose)).value}</pre>
</div>`;
const elem = html`<div>${render()}</div>`;
elem.addEventListener('click', () => {
verbose = !verbose;
elem.innerHTML = '';
elem.appendChild(render());
elem.dispatchEvent(new CustomEvent('load'));
});
elem.value = tensor;
return elem;
}