Use v.device instead of v._ref.device
Use v.device instead of v._ref.device

PiperOrigin-RevId: 220158804

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor