mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-11 23:46:02 +08:00
hotfix: cast mnist to float
This commit is contained in:
@@ -21,6 +21,9 @@ class Model:
|
||||
if __name__ == "__main__":
|
||||
X_train, Y_train, X_test, Y_test = mnist()
|
||||
|
||||
# TODO: remove this when HIP is fixed
|
||||
X_train, X_test = X_train.float(), X_test.float()
|
||||
|
||||
model = Model()
|
||||
opt = nn.optim.Adam(nn.state.get_parameters(model))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user