forked from mindspore-Ecosystem/mindspore
remove data sync
This commit is contained in:
parent
f940b66899
commit
78e9a10f37
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue