MindSpore在Ascend环境下运行模型训练报错“Response Is Empty”
收藏回复举报
MindSpore在Ascend环境下运行模型训练报错“Response Is Empty”
t('forum.solved') 已解决
发表于2026-01-29 23:49:37
0 查看

MindSpore在Ascend环境下运行模型训练报错“Response Is Empty”

帖子类型:问题求助

技术板块:动态图(PyNative) / 易用性

关键词:Ascend 910、模型训练、Response Is Empty、环境配置

问题描述

在使用华为云环境运行MindSpore入门案例时,遇到训练报错。具体场景如下:

  1. 按照官方教程(Quick Start教程)配置环境后,使用CPU训练正常;

  2. 切换至Ascend 910后,训练任务提交后报错Response Is Empty,无法正常启动;

  3. 云环境配置为:MindSpore 1.1.1 + Ascend 910 + Python 3.7.5,执行模式为PyNative。

环境信息

  • 硬件环境:Ascend 910

  • 软件环境

    • MindSpore版本:1.1.1

    • Python版本:3.7.5

    • OS:Ubuntu 18.04

    • GCC版本:7.3.0

  • 执行模式:PyNative

重现步骤

  1. 在华为云开发环境配置Ascend 910驱动和MindSpore 1.1.1;

  2. 运行以下测试代码:

    import mindspore as ms
    from mindspore import Tensor
    import numpy as np
    
    ms.set_context(device_target="Ascend")
    x = Tensor(np.ones([1, 3, 3, 4]).astype(np.float32))
    y = Tensor(np.ones([1, 3, 3, 4]).astype(np.float32))
    print(ms.ops.tensor_add(x, y))
  3. 错误信息:

    RuntimeError: Response Is Empty. Please check environment configuration or resource status.

已尝试的解决方案

  1. 确认Ascend驱动安装正常(通过npu-smi info检查);

  2. 重新安装MindSpore Ascend版本(通过官方WHL包安装);

我要发帖子