Hello,
I have read this following issue: Shapes of the output tensors
Here’s my question:
My output tensor has a shape of (1, 21, 3) for representing hand joint positions in 3D coordinates.
When I do indexing on that tensor, such as output[0, 12, 2]
, this code works. However, output[1, 0, 0]
and output[0, 2, 12]
also works even if their values are not correct.
UPDATE:
I read value in output[0, 1, 1] and output[0, 1, 4], but they all contain proper values. Is it coincidence that output[0, 1, 4] has a proper value due to memory addressing?
Then, how can I do indexing the output tensor correctly?
I also attached my code fragement in below section.
Thanks
worker.Execute(input);
TensorFloat output = worker.PeekOutput("output");
output.MakeReadable();
var temp = output;
Debug.Log(output.shape) // return (1, 21, 3)
// in another function
temp[0, 12, 1], temp[1, 0, 0], temp[0, 1, 12] // do not call error