From 7bc0cbca18d685066f3324c735ec83f4c314bc30 Mon Sep 17 00:00:00 2001 From: dinghao Date: Mon, 27 Apr 2020 19:15:42 +0800 Subject: [PATCH] remove data sync --- mindspore/ccsrc/ir/meta_tensor.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/mindspore/ccsrc/ir/meta_tensor.cc b/mindspore/ccsrc/ir/meta_tensor.cc index fe41abcef..9c886e1e5 100644 --- a/mindspore/ccsrc/ir/meta_tensor.cc +++ b/mindspore/ccsrc/ir/meta_tensor.cc @@ -166,9 +166,6 @@ Tensor::Tensor(const py::int_ &input, const TypePtr &data_type) { init(py::array Tensor::Tensor(const Tensor &tensor, const TypePtr &data_type) : MetaTensor(tensor), dirty_(tensor.dirty_), device_address_(tensor.device_address_) { init(tensor.data_, data_type); - if (device_address_ != nullptr) { - (void)data_sync(); - } } Tensor &Tensor::operator=(const Tensor &tensor) { -- GitLab