From 8a347f5c125c4c1469199472e5787a1ea2115ef6 Mon Sep 17 00:00:00 2001 From: Ailing Zhang Date: Tue, 25 Jun 2019 17:39:02 +0000 Subject: [PATCH] quick fix --- torch_xla/csrc/torch_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch_xla/csrc/torch_util.cpp b/torch_xla/csrc/torch_util.cpp index 6598233a0fd0..7c1dc8edb822 100644 --- a/torch_xla/csrc/torch_util.cpp +++ b/torch_xla/csrc/torch_util.cpp @@ -14,7 +14,7 @@ at::Tensor CopyTensor(const at::Tensor& ref, at::ScalarType dest_type) { at::Tensor ToTensor(const at::Tensor& tensor) { return tensor.is_variable() - ? torch::autograd::as_variable_ref(tensor).tensor_data() + ? torch::autograd::as_variable_ref(tensor).variable_data() : tensor; }