From 0fa258cd88f7c777ba539bccb54599c799a1a64d Mon Sep 17 00:00:00 2001 From: Foke Singh Date: Mon, 24 Jul 2023 09:34:35 +0000 Subject: [PATCH] Update examples to reflect recent async module changes, renaming asyncGeneric to asyncc. --- examples/benchmark/main.zig | 2 +- examples/simple_layer/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/benchmark/main.zig b/examples/benchmark/main.zig index 179a6c5..011c604 100644 --- a/examples/benchmark/main.zig +++ b/examples/benchmark/main.zig @@ -60,7 +60,7 @@ pub fn asyncMain() !void { // Start compiling. // The shape of the input tensor, we have to pass in manually. timer.reset(); - var compilation = try asynk.asyncGeneric(zml.module.compileModel, .{ allocator, Benchmark{}, .forward, .{ a_shape, b_shape }, platform }); + var compilation = try asynk.asyncc(zml.module.compileModel, .{ allocator, Benchmark.forward, Benchmark{}, .{ a_shape, b_shape }, platform }); // Wait for compilation to finish const compiled = try compilation.await_(); diff --git a/examples/simple_layer/main.zig b/examples/simple_layer/main.zig index 24eb062..4cc3b97 100644 --- a/examples/simple_layer/main.zig +++ b/examples/simple_layer/main.zig @@ -62,7 +62,7 @@ pub fn asyncMain() !void { // Start compiling. This uses the inferred shapes from the BufferStore. // The shape of the input tensor, we have to pass in manually. - var compilation = try asynk.asyncGeneric(zml.compileModel, .{ allocator, model_shapes, .forward, .{input_shape}, platform }); + var compilation = try asynk.asyncc(zml.compileModel, .{ allocator, Layer.forward, model_shapes, .{input_shape}, platform }); // Produce a bufferized weights struct from the fake BufferStore. // This is like the inferred shapes, but with actual values.