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

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Nov 15, 2021
1 parent b898714 commit b6be769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/image/classification/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def from_task(
"This is equivalent to the number of sample per label to select within a task."
)
adapter = cls(backbone, head, algorithm, **kwargs)
adapter["_task"] = task
adapter.__dict__["_task"] = task
return adapter

def training_step(self, batch, batch_idx) -> Any:
Expand Down

0 comments on commit b6be769

Please sign in to comment.