Skip to content

Commit

Permalink
Fix type hint of kwargs to pass along to forward pass in encoding fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
nathanpainchaud committed Nov 14, 2023
1 parent 0bc5a41 commit 65140cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions didactic/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def encode_patients(
patients: Iterable[Patient],
mask_tag: str = CardinalTag.mask,
progress_bar: bool = False,
**forward_kwargs: Dict[str, Any],
**forward_kwargs,
) -> np.ndarray:
"""Wrapper around encoder inference to handle boilerplate code (e.g. extracting attributes from patients, etc.).
Expand Down Expand Up @@ -75,7 +75,7 @@ def encode_patients_attrs(
model: CardiacMultimodalRepresentationTask,
tabular_attrs: Dict[TabularAttribute, np.ndarray],
time_series_attrs: Dict[Tuple[ViewEnum, TimeSeriesAttribute], np.ndarray],
**forward_kwargs: Dict[str, Any],
**forward_kwargs,
) -> np.ndarray:
"""Wrapper around encoder inference to handle boilerplate code (e.g. numpy to torch, batching/unbatching, etc.).
Expand Down

0 comments on commit 65140cf

Please sign in to comment.