Skip to content

Commit

Permalink
Restrict cached loader option to homogenous models
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianSzwichtenberg committed Aug 17, 2023
1 parent 76c0c14 commit acf12f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmark/inference/inference_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def run(args: argparse.ArgumentParser):
_, _, test_mask = get_split_masks(data, dataset_name)
degree = None

if hetero and args.cached_loader:
args.cached_loader = False
print('Disabling CachedLoader, not supported in Hetero models')
if args.num_layers != [1] and not hetero and args.num_steps != -1:
raise ValueError("Layer-wise inference requires `steps=-1`")

Expand Down

0 comments on commit acf12f3

Please sign in to comment.