其他分享
首页 > 其他分享> > ImportError: cannot import name 'LightningEnum' from 'pytorch_lightning.utilities

ImportError: cannot import name 'LightningEnum' from 'pytorch_lightning.utilities

作者:互联网

 

ImportError: cannot import name 'LightningEnum' from 'pytorch_lightning.utilities' (E:\Eprogramfiles\Anaconda3\lib\site-packages\pytorch_lightning\utilities\__init__.py)

 

E:\Eprogramfiles\Anaconda3\lib\site-packages\pytorch_lightning\trainer\states.py in <module>
     15 from typing import Optional
     16 
---> 17 from pytorch_lightning.utilities import LightningEnum
     18 
     19 
 
ImportError: cannot import name 'LightningEnum' from 'pytorch_lightning.utilities' (E:\Eprogramfiles\Anaconda3\lib\site-packages\pytorch_lightning\utilities\__init__.py)

 

 

标签:name,ImportError,py,utilities,lightning,pytorch,import,LightningEnum
来源: https://www.cnblogs.com/emanlee/p/16219402.html