Class Cifar10.Builder
java.lang.Object
ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<Cifar10.Builder>
ai.djl.basicdataset.cv.classification.Cifar10.Builder
- Enclosing class:
- Cifar10
public static final class Cifar10.Builder
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<Cifar10.Builder>
A builder to construct a
Cifar10.-
Field Summary
Fields inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
dataBatchifier, device, labelBatchifier, limit, pipeline, prefetchNumber, sampler, targetPipeline -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newCifar10.optArtifactId(String artifactId) Sets the optional artifactId.optGroupId(String groupId) Sets optional groupId.optManager(ai.djl.ndarray.NDManager manager) Sets the optional manager for the dataset (default follows engine default).optRepository(ai.djl.repository.Repository repository) Sets the optional repository for the dataset.optUsage(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage for the dataset.protected Cifar10.Builderself()Methods inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
addTargetTransform, addTransform, getSampler, optDataBatchifier, optDevice, optLabelBatchifier, optLimit, optPipeline, optPrefetchNumber, optTargetPipeline, setSampling, setSampling, setSampling
-
Method Details
-
self
- Specified by:
selfin classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<Cifar10.Builder>
-
optManager
Sets the optional manager for the dataset (default follows engine default).- Parameters:
manager- the new manager- Returns:
- this builder
-
optRepository
Sets the optional repository for the dataset.- Parameters:
repository- the new repository- Returns:
- this builder
-
optGroupId
Sets optional groupId.- Parameters:
groupId- the groupId}- Returns:
- this builder
-
optArtifactId
Sets the optional artifactId.- Parameters:
artifactId- the artifactId- Returns:
- this builder
-
optUsage
Sets the optional usage for the dataset.- Parameters:
usage- the usage- Returns:
- this builder
-
build
Builds a newCifar10.- Returns:
- the new
Cifar10
-