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 aCifar10
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cifar10
build()
Builds a newCifar10
.Cifar10.Builder
optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.Cifar10.Builder
optGroupId(java.lang.String groupId)
Sets optional groupId.Cifar10.Builder
optManager(ai.djl.ndarray.NDManager manager)
Sets the optional manager for the dataset (default follows engine default).Cifar10.Builder
optRepository(ai.djl.repository.Repository repository)
Sets the optional repository for the dataset.Cifar10.Builder
optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage for the dataset.protected Cifar10.Builder
self()
-
-
-
Method Detail
-
self
protected Cifar10.Builder self()
- Specified by:
self
in classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<Cifar10.Builder>
-
optManager
public Cifar10.Builder optManager(ai.djl.ndarray.NDManager manager)
Sets the optional manager for the dataset (default follows engine default).- Parameters:
manager
- the new manager- Returns:
- this builder
-
optRepository
public Cifar10.Builder optRepository(ai.djl.repository.Repository repository)
Sets the optional repository for the dataset.- Parameters:
repository
- the new repository- Returns:
- this builder
-
optGroupId
public Cifar10.Builder optGroupId(java.lang.String groupId)
Sets optional groupId.- Parameters:
groupId
- the groupId}- Returns:
- this builder
-
optArtifactId
public Cifar10.Builder optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.- Parameters:
artifactId
- the artifactId- Returns:
- this builder
-
optUsage
public Cifar10.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage for the dataset.- Parameters:
usage
- the usage- Returns:
- this builder
-
-