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

Some fixes for compatibility with PL master #1106

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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