Skip to content

Conversation

@ZXJC-niusile
Copy link

This PR resolves an UnpicklingError when running on PyTorch 2.6+ (where weights_only=True is the default).

Changes included:

  1. PyTorch Compatibility: Added an inspection check for weights_only in load_data. If supported, it explicitly sets weights_only=False to allow loading custom Graph objects.
  2. Typos Fixed:
    • Removed repeated "sure to sure to" in warning message.
    • Corrected spelling of "pre-fitering" to "pre-filtering".

Tested locally and verified that the dataset loads correctly.

Handle the UnpicklingError by checking for weights_only argument in torch.load.
Fixed "make sure to sure to delete" typo.
Fixed spelling error in warning message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant