Remove `.data` from benchmarks and tensorboard (#65389)
Summary:
Related to https://github.com/pytorch/pytorch/issues/30987 and https://github.com/pytorch/pytorch/issues/33628. Fix the following tasks:
- Remove the use of `.data` in all our internal code:
- [x] `benchmarks/`
- [x] `torch/utils/tensorboard/`
cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang gcramer23 albanD gchanan
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65389
Reviewed By: soulitzer
Differential Revision: D31093464
Pulled By: albanD
fbshipit-source-id: 3a9c8834fd544a59a1cc2b930ae538fd1d46b232