-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
defined forcings to be 0, meaningless for stats_calc in MEPS
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,15 +167,14 @@ def main( | |
) | ||
torch.cuda.set_device(device) if torch.cuda.is_available() else None | ||
|
||
# XXX ([email protected]): I don't quite understand why, but below fails with the | ||
# MEPS example dataset if I just use `datastore._num_timesteps - 2` which | ||
# would assume would be ok | ||
ar_steps = datastore._num_timesteps - 10 | ||
ds = WeatherDataset( | ||
datastore=datastore, | ||
split="train", | ||
ar_steps=ar_steps, | ||
standardize=False, | ||
num_past_forcing_steps=0, | ||
num_future_forcing_steps=0, | ||
) | ||
if distributed: | ||
ds = PaddedWeatherDataset( | ||
|
@@ -277,6 +276,8 @@ def main( | |
split="train", | ||
ar_steps=ar_steps, | ||
standardize=True, | ||
num_past_forcing_steps=0, | ||
num_future_forcing_steps=0, | ||
) # Re-load with standardization | ||
if distributed: | ||
ds_standard = PaddedWeatherDataset( | ||
|