模型训练时报错“NotImplementedError: Cannot convert a symbolic Tensor to a numpy array”
问题描述
部分模型训练时,会出现报错“NotImplementedError: Cannot convert a symbolic Tensor to a numpy array”,导致模型训练失败,报错示例如下:
图1 报错截图


可能原因
numpy的版本过高,不支持当前模型进行训练。
解决措施
卸载当前版本的numpy,安装1.19.5版本的numpy,重新启动训练任务。
父主题: 附录C:安装故障处理