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

[IMP] Limit the Test Data Size when Running CI in gcn_dist_sg.py #4461

Merged
merged 8 commits into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/cugraph-pyg/cugraph_pyg/examples/gcn_dist_sg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import argparse
import tempfile
import os
import warnings

from typing import Optional, Tuple, Dict

Expand Down Expand Up @@ -159,6 +160,10 @@ def parse_args():
args.dataset, args.dataset_root
)

if "CI_RUN" in os.environ and os.environ["CI_RUN"] == "1":
warnings.warn("Pruning test dataset for CI run.")
split_idx["test"] = split_idx["test"][:1000]

with tempfile.TemporaryDirectory(dir=args.tempdir_root) as samples_dir:
loader_kwargs = {
"data": data,
Expand Down
Loading