我正在尝试使用PyTorch训练一个模型,我得到了这个错误AttributeError: module 'utils' has no attribute 'read' 在主项目中,我有一个文件utils.pyx) import osimport torchimport torch.optim as optimi
然而,现在我得到了错误: AttributeError: module 'os' has no attribute 'chdir' 谁能告诉我这里出了什么问题,以及我如何解决这个问题?其他操作系统模块似乎仍然工作得很好。当我运行时: for file in os.listdir(DIR): 'mkdir', 'open',
'pardir&