From: Hua Jiang Date: Thu, 28 Sep 2023 20:06:18 +0000 (-0700) Subject: ggml_tensor: update the structure comments. (#3283) X-Git-Tag: gguf-v0.4.0~15 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0ccfc62a96a6b59a8faa14d1b350493f4cd51ae2;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml_tensor: update the structure comments. (#3283) * ggml_tensor: update the structure comments. * remove semicolon Co-authored-by: slaren * Update ggml.h --------- Co-authored-by: Cebtenzzre Co-authored-by: slaren --- diff --git a/ggml.h b/ggml.h index 0d99ae23..d61c28b2 100644 --- a/ggml.h +++ b/ggml.h @@ -473,8 +473,8 @@ extern "C" { int n_dims; int64_t ne[GGML_MAX_DIMS]; // number of elements size_t nb[GGML_MAX_DIMS]; // stride in bytes: - // nb[0] = sizeof(type) - // nb[1] = nb[0] * ne[0] + padding + // nb[0] = ggml_type_size(type) + // nb[1] = nb[0] * (ne[0] / ggml_blck_size(type)) + padding // nb[i] = nb[i-1] * ne[i-1] // compute data