From 8a173e0bf0acc365b796589ade25d117c34121a4 Mon Sep 17 00:00:00 2001 From: Christina Koutsou <74819775+kchristin22@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:09:07 +0200 Subject: [PATCH] Fix format error in CUDA kernel autodiff blog post (#265) --- ...04-reverse-mode-autodiff-of-cuda-kernels-final.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_posts/2024-11-04-reverse-mode-autodiff-of-cuda-kernels-final.md b/_posts/2024-11-04-reverse-mode-autodiff-of-cuda-kernels-final.md index 712b593..051c20f 100644 --- a/_posts/2024-11-04-reverse-mode-autodiff-of-cuda-kernels-final.md +++ b/_posts/2024-11-04-reverse-mode-autodiff-of-cuda-kernels-final.md @@ -401,15 +401,15 @@ int main() { const size_type D1 = 2, D2 = 3, D3 = 4, D4 = 3, D5 = 2; float A[D1][D2][D3] = { - {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}, - {{13, 14, 15, 16}, {17, 18, 19, 20}, {21, 22, 23, 24}} + { {1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12} }, + { {13, 14, 15, 16}, {17, 18, 19, 20}, {21, 22, 23, 24} } }; float B[D3][D4][D5] = { - {{1, 2}, {3, 4}, {5, 6}}, - {{7, 8}, {9, 10}, {11, 12}}, - {{13, 14}, {15, 16}, {17, 18}}, - {{19, 20}, {21, 22}, {23, 24}} + { {1, 2}, {3, 4}, {5, 6} }, + { {7, 8}, {9, 10}, {11, 12} }, + { {13, 14}, {15, 16}, {17, 18} }, + { {19, 20}, {21, 22}, {23, 24} } }; float C[D1][D2][D4][D5] = {0}; // Result tensor