MNISTBlocking

Blocking (non-suspend) MNIST data loading for Java interop.

These methods wrap the suspend functions in MNIST using runBlocking, making them callable from plain Java code.

Example usage from Java:

MNISTDataset train = MNISTBlocking.loadTrain();
MNISTDataset test = MNISTBlocking.loadTest();

Functions

Link copied to clipboard
fun loadTest(config: MNISTLoaderConfig = MNISTLoaderConfig()): MNISTDataset

Download and return the MNIST test dataset (blocking).

Link copied to clipboard
fun loadTrain(config: MNISTLoaderConfig = MNISTLoaderConfig()): MNISTDataset

Download and return the MNIST training dataset (blocking).