Accessing the output NCHW in sentis

Hi everyone!

I wanted to know how to access and assign the output tensors height, width, channels values to a new variable in unity sentis

When I tried to access width I am facing error as:

‘TensorShape’ does not contain a definition for ‘width’ and no accessible extension method ‘width’ accepting a first argument of type ‘TensorShape’ could be found(are you missing a using directive or an assembly reference?)

shape[0] = N
shape[1] = C
shape[2] = H
shape[3] = W

similar to how you would in numpy/torch

Thanks a lot for the info

1 Like