Reputation: 61
I'm using a package called TensorFlowSharp, and it returns a value in C# that is interpreted as a variable of type float[,,,,]
. But the dimensions of this variable are (0,7,7,5,7)
.
Is this variable an empty array or can I access the elements I think are in the rest of the dimensions?
I have tried accessing x[0,0,0,0,0]
but it says Index out of range
. This has occurred because a neural network in Python was passed a numpy array to create a tensor of shape (None, 7,7,5,7)
and is then translating a C# tensor class into a fundamental C# data type.
Upvotes: -1
Views: 66
Reputation: 787
To get a specific value, use array[index, index]
for example.
You can find some information on multidimensional arrays here: Microsoft Docs
Upvotes: 0