Skip to content

Commit

Permalink
Merge pull request #6 from alexbarghi-nv/add-val-limit
Browse files Browse the repository at this point in the history
[IMP] Limit the Test Data Size when Running CI in gcn_dist_sg.py
  • Loading branch information
BradReesWork authored Jul 15, 2024
2 parents 8e6619c + 85cb80d commit 4e2c49e
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 4e2c49e

Please sign in to comment.