DataLoader Type

Constructors

Constructor Description

DataLoader(dataset, batchSize, ?shuffle, ?dropLast, ?device, ?dtype, ?backend, ?targetDevice, ?targetDtype, ?targetBackend)

Full Usage: DataLoader(dataset, batchSize, ?shuffle, ?dropLast, ?device, ?dtype, ?backend, ?targetDevice, ?targetDtype, ?targetBackend)

Parameters:
Returns: DataLoader
dataset : Dataset
batchSize : int
?shuffle : bool
?dropLast : bool
?device : Device
?dtype : Dtype
?backend : Backend
?targetDevice : Device
?targetDtype : Dtype
?targetBackend : Backend
Returns: DataLoader

Instance members

Instance member Description

this.batch ?batchSize

Full Usage: this.batch ?batchSize

Parameters:
    ?batchSize : int

Returns: Tensor * Tensor
?batchSize : int
Returns: Tensor * Tensor

this.epoch ?numBatches

Full Usage: this.epoch ?numBatches

Parameters:
    ?numBatches : int

Returns: seq<int * Tensor * Tensor>
?numBatches : int
Returns: seq<int * Tensor * Tensor>

this.length

Full Usage: this.length

Returns: int
Returns: int

© Copyright 2021, DiffSharp Contributors.