Skip to content

Commit

Permalink
fix incorrect input type
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Feb 4, 2025
1 parent f233f87 commit 06bfb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _create_dataarray_from_tensor(
weather_dataset = WeatherDataset(datastore=self._datastore, split=split)
time = np.array(time.cpu(), dtype="datetime64[ns]")
da = weather_dataset.create_dataarray_from_tensor(
tensor=tensor.cpu().numpy(), time=time, category=category
tensor=tensor, time=time, category=category
)
return da

Expand Down

0 comments on commit 06bfb81

Please sign in to comment.