What is the recommended strategy for loading legacy PyTorch checkpoints after the torch.load weights_only default changed to True?
Goal Determine a safe, version‑agnostic method for loading existing PyTorch checkpoints that were saved with the legacy torch.load behavior (weights_only=False) while the default has shifted to weights_only=True in recent releases. Constraints include preserving the ability to load trusted checkpoints that contain non‑tensor Python objects (e.g., custom opti