Skip to content

Commit 2164634

Browse files
committed
Fix format error in CUDA kernel autodiff blog post
1 parent a43e56d commit 2164634

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_posts/2024-11-04-reverse-mode-autodiff-of-cuda-kernels-final.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,15 @@ int main() {
401401
const size_type D1 = 2, D2 = 3, D3 = 4, D4 = 3, D5 = 2;
402402

403403
float A[D1][D2][D3] = {
404-
{{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}},
405-
{{13, 14, 15, 16}, {17, 18, 19, 20}, {21, 22, 23, 24}}
404+
{ {1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12} },
405+
{ {13, 14, 15, 16}, {17, 18, 19, 20}, {21, 22, 23, 24} }
406406
};
407407

408408
float B[D3][D4][D5] = {
409-
{{1, 2}, {3, 4}, {5, 6}},
410-
{{7, 8}, {9, 10}, {11, 12}},
411-
{{13, 14}, {15, 16}, {17, 18}},
412-
{{19, 20}, {21, 22}, {23, 24}}
409+
{ {1, 2}, {3, 4}, {5, 6} },
410+
{ {7, 8}, {9, 10}, {11, 12} },
411+
{ {13, 14}, {15, 16}, {17, 18} },
412+
{ {19, 20}, {21, 22}, {23, 24} }
413413
};
414414

415415
float C[D1][D2][D4][D5] = {0}; // Result tensor

0 commit comments

Comments
 (0)