Skip to content

Commit 154f82e

Browse files
committed
Fix
Signed-off-by: Joaquin Anton Guirao <[email protected]>
1 parent 5629a1f commit 154f82e

File tree

1 file changed

+2
-4
lines changed
  • docs/examples/use_cases/pytorch/efficientnet/image_classification

1 file changed

+2
-4
lines changed

docs/examples/use_cases/pytorch/efficientnet/image_classification/dataloaders.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,9 @@ def get_impl(
896896
prefetch_factor=prefetch_factor,
897897
)
898898

899-
out_memory_format = memory_format if preprocessing_method == "dali" else None
900899
return (
901900
PrefetchedWrapper(
902-
train_loader, start_epoch, num_classes, one_hot, memory_format=out_memory_format
901+
train_loader, start_epoch, num_classes, one_hot
903902
),
904903
len(train_loader),
905904
)
@@ -979,10 +978,9 @@ def get_impl(
979978
prefetch_factor=prefetch_factor,
980979
)
981980

982-
out_memory_format = memory_format if preprocessing_method == "dali" else None
983981
return (
984982
PrefetchedWrapper(
985-
val_loader, 0, num_classes, one_hot, memory_format=out_memory_format
983+
val_loader, 0, num_classes, one_hot
986984
),
987985
len(val_loader),
988986
)

0 commit comments

Comments
 (0)