How to add custom attributes to pytorch tensor

Thanks, I have added the additional attr to myTensorImpl based on tensorImpl, it works.