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

[DHNE] #139

Merged
merged 7 commits into from Jan 8, 2023
Merged

[DHNE] #139

merged 7 commits into from Jan 8, 2023

Conversation

YilingY6
Copy link
Contributor

@YilingY6 YilingY6 commented Oct 13, 2022

Description

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 best of my 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

main.py Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
openhgnn/dataset/HypergraphDataset.py Outdated Show resolved Hide resolved
openhgnn/dataset/HypergraphDataset.py Outdated Show resolved Hide resolved
openhgnn/dataset/HypergraphDataset.py Show resolved Hide resolved
@@ -78,7 +79,7 @@ def __init__(self, model, dataset, task,
if use_best_config:
self.config = set_best_config(self.config)
self.set_params(**kwargs)
print(self)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to delete this line? @Zhanghyi

Copy link
Collaborator

Choose a reason for hiding this comment

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

Dont delete it. This line prints experiment information.

encodeds = []
decodeds = []
for i in range(3):
encoded = torch.tanh(self.encodeds[i].to(self.device)(input_ids[i].to(self.device)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember that this "to(self.device)" has been done in the "trainerflow", so do we really need parameter "device"?

openhgnn/models/DHNE.py Outdated Show resolved Hide resolved
@Zhanghyi Zhanghyi merged commit 35db5bf into BUPT-GAMMA:main Jan 8, 2023
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.

None yet

3 participants