Browse Source

torch fdl

tags/v1.0.0alpha
MorningForest 2 years ago
parent
commit
e68eb7dcbc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fastNLP/core/dataloaders/torch_dataloader/fdl.py

+ 1
- 1
fastNLP/core/dataloaders/torch_dataloader/fdl.py View File

@@ -64,7 +64,7 @@ class TorchDataLoader(DataLoader):
"""

def __init__(self, dataset, batch_size: int = 16,
shuffle: bool = False, sampler = None, batch_sampler = None,
shuffle: bool = False, sampler=None, batch_sampler=None,
num_workers: int = 0, collate_fn: Union[Callable, str, None] = 'auto',
pin_memory: bool = False, drop_last: bool = False,
timeout: float = 0, worker_init_fn: Optional[Callable] = None,


Loading…
Cancel
Save