草庐IT

myDrives

全部标签

c++ windows 将 GetLogicalDrives 的结果传递给 GetVolumeInformation

你好,我使用GetLogicalDrives获取所有驱动器,我想进一步使用它来检测驱动器类型,然后使用GetVolumeInformation检查特定驱动器的状态。但是,我无法在GetVolumeInformation和GetDriveTypes中使用GetLogicalDrives(DWORD)的结果,因为它们排除了LPCWSTR。我如何转换GetLogicalDrives的结果并将其传递给GetVolumeInformation和GetDriveTypes?TCHARmyDrives[]=L"A";DWORDmyDrivesBitMask=GetLogicalDrives();WC

bert模型训练,加载保存的模型Can‘t load tokenizer for ‘/content/drive/MyDrive/Colab Notebooks/classification_mode

#5.保存训练好的模型参数importosmodel.save_pretrained("/content/drive/MyDrive/ColabNotebooks/test/classification_models_2/space1/")tokenizer.save_pretrained("/content/drive/MyDrive/ColabNotebooks/test/classification_models_2/space1/")torch.save(args,os.path.join("/content/drive/MyDrive/ColabNotebooks/test/clas