Skip to content

[AIR] GNN example cleanup#24080

Merged
amogkam merged 4 commits intoray-project:masterfrom
amogkam:gnn-example-cleanup
Apr 22, 2022
Merged

[AIR] GNN example cleanup#24080
amogkam merged 4 commits intoray-project:masterfrom
amogkam:gnn-example-cleanup

Conversation

@amogkam
Copy link
Copy Markdown
Contributor

@amogkam amogkam commented Apr 21, 2022

Minor cleanup for GNN example

Why are these changes needed?

Related issue number

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Copy link
Copy Markdown
Member

@gjoliver gjoliver left a comment

Choose a reason for hiding this comment

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

thanks for making the followup changes!

return fake_dataset


def gen_reddit_dataset():
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

actually we can simplify this too right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

actually- sorry I've confused myself. For the fake dataset, we had to do it the original way because we want the same dataset for all the workers (so we create the fake dataset on the driver, and have the same dataset returned on all the workers).

For reddit dataset, you're right we can simplify this.

Updated the PR!


@torch.no_grad()
def inference(self, x_all, subgraph_loader):
def test(self, x_all, subgraph_loader):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh, dude, test() makes so much more sense!!
thanks.

@amogkam amogkam merged commit f500997 into ray-project:master Apr 22, 2022
@amogkam amogkam deleted the gnn-example-cleanup branch April 22, 2022 00:00
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.

2 participants