Skip to content

Commit

Permalink
save as tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Jul 30, 2024
1 parent 96c51e0 commit c4c2ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/save_concurrent_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import hydra
import numpy as np
import torch
from ocf_datapipes.batch import BatchKey
from ocf_datapipes.batch import BatchKey, batch_to_tensor
from ocf_datapipes.training.pvnet_all_gsp import (
construct_sliced_data_pipeline,
construct_time_pipeline,
Expand Down Expand Up @@ -72,7 +72,7 @@ def _get_datapipe(config_path, start_time, end_time, n_batches):
datapipe = construct_sliced_data_pipeline(
config_path,
t0_datapipe,
)
).map(batch_to_tensor)

return datapipe

Expand Down

0 comments on commit c4c2ac4

Please sign in to comment.