mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
seems more generic
This commit is contained in:
parent
2333c4dea7
commit
ea41f5e1c1
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class TinyConvNet:
|
|||
|
||||
def train(model, optim, steps, BS=128):
|
||||
losses, accuracies = [], []
|
||||
for i in (t := trange(steps, disable=os.getenv('GITHUB_ACTIONS') is not None)):
|
||||
for i in (t := trange(steps, disable=os.getenv('CI') is not None)):
|
||||
samp = np.random.randint(0, X_train.shape[0], size=(BS))
|
||||
|
||||
x = Tensor(X_train[samp].reshape((-1, 28*28)).astype(np.float32))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue