File size: 214 Bytes
336661a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import torch

try:
    ckpt = torch.load("out/ckpt.pt", map_location="cpu")
    print("✅ Checkpoint has been loaded successfully")
except Exception as e:
    print("❌ Failed to load the checkpoint:", e)