Update MNIST example to use new operator source locations and reflect recent API changes (sdpa bias removal, gatherSlices shape literals, Shape.outer, Tensor.all, and argMax dtype inference)

This commit is contained in:
Foke Singh 2023-12-26 10:45:52 +00:00
parent 5bd7f8aae9
commit 223857251d

View File

@ -33,7 +33,7 @@ const Mnist = struct {
for (layers) |layer| { for (layers) |layer| {
x = zml.call(layer, .forward, .{x}); x = zml.call(layer, .forward, .{x});
} }
return x.argMax(0, .u8).indices; return x.argMax(0).indices.convert(.u8);
} }
}; };