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

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed May 12, 2021
1 parent c512f75 commit 1da7d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flash/data/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ def forward(self, samples: Sequence[Any]) -> Any:
samples = type(_samples)(_samples)

with self._collate_context:
samples, metada = self._extract_metadata(samples)
samples, metadata = self._extract_metadata(samples)
samples = self.collate_fn(samples)
if metada:
samples[DefaultDataKeys.METADATA] = metada
if metadata:
samples[DefaultDataKeys.METADATA] = metadata
self.callback.on_collate(samples, self.stage)

with self._per_batch_transform_context:
Expand Down

0 comments on commit 1da7d89

Please sign in to comment.