pytorch加载MNIST数据集图片Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

添加以下代码

1
2
3
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
#允许问题描述中dll副本存在

pytorch加载MNIST数据集图片Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
https://xinhaojin.github.io/2021/04/01/pytorch加载mnist数据集图片error-15-initializing-libiomp5md-dll-but-found-libiomp5md-dll-already-initialized/
作者
xinhaojin
发布于
2021年4月1日
许可协议