title: How to extract the value of a tensor in tensorflow.js?
body: <p>My model outputs ten predictions from which I take the largest one with argmax. Unfortunately, this also returns a tensor (with single value like this: Tensor: [8]) and I can't figure out how to make this tensor either into integer, or extract the only value. </p>
  
  <p>So far I've tried gather, asType, dataSync, and get.</p>