From: Georgi Gerganov Date: Mon, 10 Jul 2023 19:05:13 +0000 (+0300) Subject: ggml : fix docs about element access (close #348) X-Git-Tag: upstream/0.0.1642~1340 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9bc39eec525e91b32f847d2d7e854c4db6f97e6a;p=pkg%2Fggml%2Fsources%2Fggml ggml : fix docs about element access (close #348) --- diff --git a/include/ggml/ggml.h b/include/ggml/ggml.h index ab84bef6..4993a060 100644 --- a/include/ggml/ggml.h +++ b/include/ggml/ggml.h @@ -132,10 +132,10 @@ // { // struct ggml_tensor * a = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 2, 3); // -// // a[1, 2] = 1.0f; +// // a[2, 1] = 1.0f; // *(float *) ((char *) a->data + 2*a->nb[1] + 1*a->nb[0]) = 1.0f; // -// // a[2, 0] = 2.0f; +// // a[0, 2] = 2.0f; // *(float *) ((char *) a->data + 0*a->nb[1] + 2*a->nb[0]) = 2.0f; // // ...