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

Commit

Permalink
Update following comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Nov 4, 2021
1 parent a657b20 commit 3a50eda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flash/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ def output(self) -> Optional[Output]:

@torch.jit.unused
@output.setter
def output(self, serializer: Union[Output, Mapping[str, Output]]):
if isinstance(serializer, Mapping):
serializer = OutputMapping(serializer)
self._output = serializer
def output(self, output: Union[Output, Mapping[str, Output]]):
if isinstance(output, Mapping):
output = OutputMapping(output)
self._output = output

def build_data_pipeline(
self,
Expand Down

0 comments on commit 3a50eda

Please sign in to comment.