mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-10-24 06:28:07 +08:00
Update a few examples to use compile (#420)
* update a few examples to use compile * update mnist * add compile to vae and rename some stuff for simplicity * update reqs * use state in eval * GCN example with RNG + dropout * add a bit of prefetching
This commit is contained in:
@@ -23,6 +23,7 @@ def mnist(batch_size, img_size, root=None):
|
||||
.image_resize("image", h=img_size[0], w=img_size[1])
|
||||
.key_transform("image", normalize)
|
||||
.batch(batch_size)
|
||||
.prefetch(4, 4)
|
||||
)
|
||||
|
||||
# iterator over test set
|
||||
|
||||
Reference in New Issue
Block a user