---
title: to_host
description: 搬移image到Host内存中。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/msadg/mxvisionug_1121.html"
---

# to_host

#### 函数功能

搬移image到Host内存中。


#### 函数原型

```
to_host()
```


#### 抛异常接口

调用Tensor的to_host函数失败，抛出runtime异常。
