mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +00:00
23 lines
525 B
Python
23 lines
525 B
Python
vision = pyimport "./vision"
|
|
|
|
.MNIST: ClassType
|
|
.MNIST <: vision.VisionDataset
|
|
.MNIST.
|
|
__call__: (
|
|
root: Str,
|
|
train := Bool,
|
|
download := Bool,
|
|
transform := GenericCallable,
|
|
target_transform := GenericCallable,
|
|
) -> .MNIST
|
|
|
|
.FashionMNIST: ClassType
|
|
.FashionMNIST <: .MNIST
|
|
.FashionMNIST.
|
|
__call__: (
|
|
root: Str,
|
|
train := Bool,
|
|
download := Bool,
|
|
transform := GenericCallable,
|
|
target_transform := GenericCallable,
|
|
) -> .FashionMNIST
|