When you do hidden =  this is not an inplace operation. It only change the python object which is associated with the name “hidden”.
Also the autograd makes sure the inplace operations are valid and will raise an error if useful data are deleted.