Skip to content

Commit

Permalink
Remove unused head argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ar90n committed Apr 6, 2022
1 parent 9ff750e commit 9a1839a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flash/image/embedding/strategies/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ class DefaultAdapter(Adapter):

required_extras: str = "image"

def __init__(self, backbone: torch.nn.Module, head: torch.nn.Module):
def __init__(self, backbone: torch.nn.Module):
super().__init__()

self.backbone = backbone
self.head = head

@classmethod
@catch_url_error
Expand All @@ -41,10 +40,9 @@ def from_task(
*args,
task: AdapterTask,
backbone: torch.nn.Module,
head: torch.nn.Module,
**kwargs,
) -> Adapter:
adapter = cls(backbone, head)
adapter = cls(backbone)
adapter.__dict__["_task"] = task
return adapter

Expand Down

0 comments on commit 9a1839a

Please sign in to comment.