Mat file empty after saving
27 次查看(过去 30 天)
显示 更早的评论
I'm training a neural network on an HPCMP system GPU cluster (Linux OS) and I'm saving the trained model parameters in a structure. When I execute the code on my local machine (Windows OS) for debugging, the code executes fine and my model is saved. The saved .mat file containing the model/data structure is about 550 MB and I have no problems importing the structure and its contents back into Matlab on my local machine.
When I execute the same code on the HPCMP GPU cluster, the code executes fine, the model is saved in the designated directory and the filesize shows that it is also about 550 MB; however, when I try to import this file back into Matlab the import utility says the Mat file is empty. I'm performing transfer learning with my neural network on the HPCMP sytems and when the saved Mat file is reloaded, the code fails because the file doesn't load any data.
I don't understand why this mat file would show a filesize of 550 MB and be empty in the import wizard. If I pull the mat file off HPCMP systems and onto my local machine, the filesize still shows 550 MB but I still can't see or load any data from it; import utility still says the Mat file is empty.
I've saved models on HPCMP systems with similar code without these issues so I don't know what has changed exactly and why the file won't load any data even though the filesize shows the file isn't empty. I'm using iLaucher to submit communicating jobs to the HPCMP cluster, in the past, I used HPC portal but I don't see why this would make a difference exactly. Since its a communicating job, I lose access to debug the job after it is submitted to the cluster.
Any help would be greatly appreciated!
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!