Class FashionMnist.Builder
- java.lang.Object
-
- ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
-
- ai.djl.basicdataset.cv.classification.FashionMnist.Builder
-
- Enclosing class:
- FashionMnist
public static final class FashionMnist.Builder extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
A builder for aFashionMnist.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FashionMnistbuild()Builds theMnist.FashionMnist.BuilderoptArtifactId(java.lang.String artifactId)Sets the optional artifactId.FashionMnist.BuilderoptGroupId(java.lang.String groupId)Sets optional groupId.FashionMnist.BuilderoptManager(ai.djl.ndarray.NDManager manager)Sets the optional manager for the dataset (default follows engine default).FashionMnist.BuilderoptRepository(ai.djl.repository.Repository repository)Sets the optional repository.FashionMnist.BuilderoptUsage(ai.djl.training.dataset.Dataset.Usage usage)Sets the optional usage.protected FashionMnist.Builderself()
-
-
-
Method Detail
-
self
protected FashionMnist.Builder self()
- Specified by:
selfin classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
-
optManager
public FashionMnist.Builder optManager(ai.djl.ndarray.NDManager manager)
Sets the optional manager for the dataset (default follows engine default).- Parameters:
manager- the manager- Returns:
- this builder
-
optRepository
public FashionMnist.Builder optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.- Parameters:
repository- the repository- Returns:
- this builder
-
optGroupId
public FashionMnist.Builder optGroupId(java.lang.String groupId)
Sets optional groupId.- Parameters:
groupId- the groupId}- Returns:
- this builder
-
optArtifactId
public FashionMnist.Builder optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.- Parameters:
artifactId- the artifactId- Returns:
- this builder
-
optUsage
public FashionMnist.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.- Parameters:
usage- the usage- Returns:
- this builder
-
build
public FashionMnist build()
Builds theMnist.- Returns:
- the
Mnist
-
-