Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update flash/core/integrations/pytorch_forecasting/adapter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jirka Borovec <[email protected]>
  • Loading branch information
ethanwharris and Borda authored Oct 29, 2021
1 parent fb4a598 commit 9c213d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flash/core/integrations/pytorch_forecasting/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ def from_task(
metrics = [metrics]
backbone_kwargs["logging_metrics"] = metrics

if not backbone_kwargs:
backbone_kwargs = {}
backbone_kwargs = backbone_kwargs or {}

adapter = cls(task.backbones.get(backbone)(time_series_dataset=time_series_dataset, **backbone_kwargs))

Expand Down

0 comments on commit 9c213d6

Please sign in to comment.