Tensor::resize behavior unspecified when a TensorImpl exists
actually the resize function change Tensor dimensions but does not touch TensorImpl which is incorrect.
This must be fixed but what is the precise expected behavior? Noticeably, should existing data be kept (I propose not to, too many case where it is meaningless).