Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Fix duplicate edges #2553 #2569

Merged
merged 5 commits into from
Jan 26, 2021
Merged

Conversation

VoVAllen
Copy link
Collaborator

Description

Fix #2553

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented
  • To the my best knowledge, examples are either not affected by this change,
    or have been fixed to be compatible with this change
  • Related issue is referred in this PR
  • If the PR is for a new model/paper, I've updated the example index here.

Changes

save_graphs(graph_path, self._graph)

def load(self):
graph_path = os.path.join(self.save_path, 'dgl_graph.bin')
graph_path = os.path.join(self.save_path, 'dgl_graph_fix.bin')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @hetong007 , to better track the change. Let's use version number in the cache name. For example, here you should use 'dgl_graph_v1.bin'. The implicit rule is if there's any code changes to the preprocess logic which will invalidate user's cached data, use a new cache name by increasing the version number of one. cc @sneakerkg @HuXiangkun @classicsong for visibility

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@jermainewang jermainewang changed the title Fix duplicate edges #2553 [Bugfix] Fix duplicate edges #2553 Jan 25, 2021
@HuXiangkun
Copy link
Collaborator

Agreed with Minjie.

@VoVAllen VoVAllen merged commit c45f6eb into dmlc:master Jan 26, 2021
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.

Edges in coauthor datasets are duplicated (for 4 times)
3 participants