I’m trying to index a 4d tensor as such:
x[batch, :, begin_x:end_x, begin_y:end_y]
(begin_x
, begin_y
, end_x
, end_y
are all single integers)
However the resultant image looks almost strange [full img on right, slice on the left]
When I do the following for a 2d image it works as expected. i.e.:
x[batch, begin_x:end_x, begin_y:end:y]
I tried .contiguous
to no avail. Am I just doing something dumb?