Hi,
the result of the resize_ function is a tensor containing garbage data, I don’t think you want to use it here.
You can use the narrow method to select only the part of the tensor you want or advanced indexing:
# Using narrow
out = in.narrow(-2, 1, 3).narrow(-1, 1, 3)
# Using advanced indexing
out = in[:, :, 1:, 1:]