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

Commit

Permalink
Some fixes for compatibility with PL master
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Jan 7, 2022
1 parent 3b2d868 commit eb47dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flash/core/data/io/input_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def _resolve_transforms(self, running_stage: RunningStage) -> Optional[Dict[str,
from flash.core.data.data_pipeline import DataPipeline

transforms_out = {}
stage = _STAGES_PREFIX[running_stage.value]
stage = _STAGES_PREFIX[running_stage]

# iterate over all transforms hook name
for transform_name in InputTransformPlacement:
Expand Down Expand Up @@ -997,7 +997,7 @@ def _check_transforms(
if transform is None:
return transform

keys_diff = set(transform.keys()).difference([v for v in InputTransformPlacement])
keys_diff = set(transform.keys()).difference([v.value for v in InputTransformPlacement])

if len(keys_diff) > 0:
raise MisconfigurationException(
Expand Down

0 comments on commit eb47dc5

Please sign in to comment.