executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
index-batchingGuides memory-efficient PyTorch Geometric Temporal index-batching, GPU preprocessing flags, loader return tuples, and optional Dask-DDP training.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task asks about PyTorch Geometric Temporal index-batching, memory-efficient temporal mini-batches, get_index_dataset, IndexDataset, allGPU, dask_batching, world_size/ddp_rank, Dask-DDP, or errors caused by missing index=True.
DataLoader that yields sequence windows instead of a full temporal signal iterator.get_index_dataset returns, normalization statistics, or batch tensor shape.allGPU=-1), GPU index preprocessing (allGPU=<device_id>), or optional Dask-DDP distributed training.get_index_dataset requires 'index=True', missing dask/pandas/tables, CUDA not available, or DistributedSampler rank/replica problems.StaticGraphTemporalSignal, dynamic graph signals, hetero signals, slicing, or temporal_signal_split; route those to the temporal-signals sub-skill.get_dataset() loader workflows, download/cache planning, and non-index dataset catalogs; route those to the dataset-loaders sub-skill.IndexDataset is not exported from torch_geometric_temporal.signal; import it explicitly with:
from torch_geometric_temporal.signal.index_dataset import IndexDataset
Loader index batching is opt-in. Instantiate supported loaders with index=True before calling get_index_dataset(...).
IndexDataset(indices, data, horizon, lazy=False, gpu=False) stores start indices and returns (X_window, y_window), where both windows have length horizon/lags along time.
Batches yielded by built-in index dataloaders have sequence-to-sequence layout close to [batch, lags, num_nodes, num_features] before any model-specific permutation.
Chickenpox returns a 5-tuple; WindmillLarge, METR-LA, PeMS-Bay, PeMS-All-LA, and PeMS return a 7-tuple with normalization statistics.
world_size, ddp_rank, DistributedSampler, or scheduler-file behavior.IndexDataset sanity check.from torch_geometric_temporal.dataset import PemsBayDatasetLoader
loader = PemsBayDatasetLoader(index=True)
train_loader, val_loader, test_loader, edge_index, edge_weight, mean, std = (
loader.get_index_dataset(lags=12, batch_size=64, shuffle=True, allGPU=-1)
)
for X_batch, y_batch in train_loader:
# CPU preprocessing path: move tensors to the model device inside the loop.
# X_batch/y_batch are sequence windows, typically [B, T, N, F].
pass
For Chickenpox, unpack five values instead:
train_loader, val_loader, test_loader, edge_index, edge_weight = (
ChickenpoxDatasetLoader(index=True).get_index_dataset(lags=4, batch_size=4)
)
If the task requires exact loader-specific shapes, DDP behavior, or de-normalization, open the references instead of expanding this router.