I have a tensor that looks like this: (tensor: shape=[1 200 304], dtype=TF_FLOAT, data=...
Now how can iterate through the tensor? With.get_data() I only get the data without the indices. But I want to do something like this:
for (int row=0; row<maxRows; row++){ for (int col=0; col<macCol; col++){ Foo.Bar(my_cpp_tensor[row,col], row, col);}}
How would I do that?
Hey follwing example:
I have a tensor that looks like this:
(tensor: shape=[1 200 304], dtype=TF_FLOAT, data=...
Now how can iterate through the tensor? With.get_data()
I only get the data without the indices. But I want to do something like this:for (int row=0; row<maxRows; row++){ for (int col=0; col<macCol; col++){ Foo.Bar(my_cpp_tensor[row,col], row, col);}}
How would I do that?