Skip to content

Commit 92bdfca

Browse files
committed
Fix syntax error in demo
1 parent 3a66efd commit 92bdfca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_gsocblogs/2024/blog_CUDA_kernels_autodiff.md

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

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

411411
float B[D3][D4][D5] = {
412-
{{1, 2}, {3, 4}, {5, 6}},
413-
{{7, 8}, {9, 10}, {11, 12}},
414-
{{13, 14}, {15, 16}, {17, 18}},
415-
{{19, 20}, {21, 22}, {23, 24}}
412+
{ {1, 2}, {3, 4}, {5, 6} },
413+
{ {7, 8}, {9, 10}, {11, 12} },
414+
{ {13, 14}, {15, 16}, {17, 18} },
415+
{ {19, 20}, {21, 22}, {23, 24} }
416416
};
417417

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

0 commit comments

Comments
 (0)