Using pickle.load() between different DGL versions

Hi! I am encountering the same issue as in here: https://discuss.dgl.ai/t/how-to-use-pickle-load-lib-in-dgl/3606 and I was wondering if there’s any solution to make it work?

Thanks in advance!

Maintaining backward compatibility for pickling is inherently hard because it many times rely on internal states. You could try the following:

  1. Roll back to the old DGL version that you used to pickle the graph.
  2. Load the graph using pickle.load and then resave it using dgl.save_graphs.
  3. Switch to the latest DGL.
  4. Load the graph using dgl.load_graphs.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.