How do I get the value out of a tensor in Tensorflow.js after specifying the index?
15
votes
5 Answers
18
votes
3
votes
2
votes
You can use the following more powerful method
tensor.buffer().get(0, 0);
This will allow you index into logical coordinates of the tensor (the 2d coordinates as opposed to the flattened 1d coordinate). See the link
0
votes