Describe the bug/ 问题描述 (Mandatory / 必填)
在执行bash scripts/pytest_ut_st.sh时,tests\st\test_bilstm_imdb.py文件下存在AttributeError: module 'mindspore.nn' has no attribute 'Module'错误。具体问题如下
Hardware Environment(Ascend/GPU/CPU) / 硬件环境:
CPU
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.3.0
-- Python version (e.g., Python 3.7.5) :3.9.19
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):Windows 11
Describe the bug/ 问题描述 (Mandatory / 必填) 在执行bash scripts/pytest_ut_st.sh时,tests\st\test_bilstm_imdb.py文件下存在AttributeError: module 'mindspore.nn' has no attribute 'Module'错误。具体问题如下
Hardware Environment(
Ascend
/GPU
/CPU
) / 硬件环境:Software Environment / 软件环境 (Mandatory / 必填): -- MindSpore version (e.g., 1.7.0.Bxxx) :2.3.0 -- Python version (e.g., Python 3.7.5) :3.9.19 -- OS platform and distribution (e.g., Linux Ubuntu 16.04):Windows 11
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative
/Graph
):To Reproduce / 重现步骤 (Mandatory / 必填) Steps to reproduce the behavior: 1.Terminal中执行bash scripts/pytest_ut_st.sh 2.出现图中错误
Expected behavior / 预期结果 (Mandatory / 必填) 执行bash scripts/pytest_ut_st.sh,不出现上述报错
Screenshots/ 日志 / 截图 (Mandatory / 必填) 运行pytest_ut_st.sh后出现问题
Additional context / 备注 (Optional / 选填) Add any other context about the problem here.