Sorry, I’m new to pytorch.
After I wrap the sliced part and optimize it like this,
optimizer = torch.optim.Adam(params=[Variable(z[:, start:end])], lr=0.01)

original z will be updated?
If no, how can I get updated z with original shape?