SortedDL: SortedDL

Description Usage Arguments Value

View source: R/text_data.R

Description

A 'DataLoader' that goes throught the item in the order given by 'sort_func'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
SortedDL(
  dataset,
  sort_func = NULL,
  res = NULL,
  bs = 64,
  shuffle = FALSE,
  num_workers = NULL,
  verbose = FALSE,
  do_setup = TRUE,
  pin_memory = FALSE,
  timeout = 0,
  batch_size = NULL,
  drop_last = FALSE,
  indexed = NULL,
  n = NULL,
  device = NULL
)

Arguments

dataset

dataset

sort_func

sort_func

res

res

bs

bs

shuffle

shuffle

num_workers

num_workers

verbose

verbose

do_setup

do_setup

pin_memory

pin_memory

timeout

timeout

batch_size

batch_size

drop_last

drop_last

indexed

indexed

n

n

device

device

Value

None


fastai documentation built on July 28, 2021, 5:06 p.m.