赞
踩
from pytorch_lightning.utilities.distributed import rank_zero_only, 解决办法:该函数已移至具有不同名称的新脚本。尝试将其导入为:
from pytorch_lightning.utilities.rank_zero import rank_zero_only
问题解决