mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
9 lines
263 B
Python
9 lines
263 B
Python
#!/bin/bash
|
|
from tinygrad import Tensor
|
|
from extra.datasets import fetch_mnist
|
|
|
|
if __name__ == "__main__":
|
|
X_train, Y_train, X_test, Y_test = fetch_mnist(tensors=True)
|
|
samples = Tensor.randint(512, high=X_train.shape[0])
|
|
select = X_train[samples].realize()
|