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.
So far I've tried gather, asType, dataSync, and get.