1.系统环境
硬件环境(Ascend/GPU/CPU): Ascend
MindSpore版本: mindspore=2.0
执行模式(PyNative/ Graph):不限
Python版本:3.7
操作系统平台:Linux
2. 问题描述
迁移tacotron2网络到MindSpore时ops.flip(image, -1)水平翻转图片出现问题
TypeError: For 'ReverseV2', type of 'axis' should be one of '['list', 'tuple']', but got type 'int'.
3. 解决方案
只支持传元组或者列表
解决方案:改为np.flip(image, -1)可以解决问题。