mirror of
https://gitlvb.teallvbs.xyz/IQ.Lvbs/IQ.Pilot.git
synced 2026-07-12 05:12:05 +08:00
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()
|