From ee397da216547a62becf36eeac22438b2c7762c3 Mon Sep 17 00:00:00 2001 From: Laszlo Kindrat Date: Thu, 7 Sep 2023 16:26:09 -0400 Subject: [PATCH] [Mojo][Kernels] Fix signature of adaptive function in Memset notebook (#20919) Should be the last notebook that uses `search`, and therefore the adaptive function must have only position-only arguments. modular-orig-commit: 2ea7ecfb598f312b49f517f9a2a26d28c4a809a2 --- examples/Memset.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Memset.ipynb b/examples/Memset.ipynb index 50916149b7..fa2c54199b 100644 --- a/examples/Memset.ipynb +++ b/examples/Memset.ipynb @@ -16,6 +16,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -675,7 +676,7 @@ "outputs": [], "source": [ "@adaptive\n", - "fn memset_autotune_impl(ptr: BufferPtrType, value: ValueType, count: Int):\n", + "fn memset_autotune_impl(ptr: BufferPtrType, value: ValueType, count: Int, /):\n", " memset_impl_layer[-100, 100](ptr, value, count)" ] },