title: Printing the value of argMax index?
body: <p>I would like to print the actual value of the argMax index (the highest probability) in this scenario:</p>
  <pre><code>const result = await model.predict(t4d); 
  result.print(); // puts out: Tensor [[0.9899636, 0.0100364],]
  result.as1D().argMax().print(); // prints either 0 or 1
  </code></pre>
  <p>Besides the index, I would want to print the actual value 0,XXXX behind argMax(). Any advice for this?</p>
  <p>Test that doesn't work:</p>
  <pre><code>const confidence = result.dataSync&lt;'float32'()&gt;;
  console.log(confidence);
  </code></pre>
  <p>Sorry if this is a question that has been answered any times, I have spent a few hours searching!</p>