昇腾社区
开发者
主页
开发
文档
活动
学习
论坛
博客
开发者计划
更多
Home
Products
Solutions
更多
Atlas Hardware
Coming Soon
Heterogeneous Compute Architecture
CANN
AI Frameworks
MindSpore
PyTorch Adaptation
TensorFlow Adaptation
Application Enablement
MindSpeed
MindIE
MIndCluster
MindEdge
MindSDK
ModelZoo
Full-Pipeline Development Toolchains
MindStudio
Cluster O&M
CCAE
Industry Applications
Internet
Telecom
Urban Data Center
Finance
Education
Energy
Transportation
Manufacturing
Healthcare
Solutions
MoE EP Solution
Atlas Foundation Model Solution
文档

to_host

Function Usage

Moves a tensor to the host memory.

Prototype

1
to_host()

Exception Throwing Interface

If the tensor memory fails to be allocated and copied to the host, a runtime exception is thrown.

Parent topic: Tensor

Copyright © 2021-2026 Huawei Technologies Co., Ltd. All rights reserved.

Terms of Use
Privacy Policy
Cookies Policy
User Agreement
Contact Us
我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。查看详情