(repo_id="hf-internal-testing/etth1-hourly-batch", file="train-batch.pt")
| 302 | |
| 303 | |
| 304 | def prepare_batch(repo_id="hf-internal-testing/etth1-hourly-batch", file="train-batch.pt"): |
| 305 | file = hf_hub_download(repo_id=repo_id, filename=file, repo_type="dataset") |
| 306 | check_torch_load_is_safe() |
| 307 | batch = torch.load(file, map_location=torch_device, weights_only=True) |
| 308 | return batch |
| 309 | |
| 310 | |
| 311 | # Note: Pretrained model is not yet downloadable. |
no test coverage detected