Skip to content

Commit 0ccfc62

Browse files
huajsjcebtenzzreslaren
authored
ggml_tensor: update the structure comments. (#3283)
* ggml_tensor: update the structure comments. * remove semicolon Co-authored-by: slaren <[email protected]> * Update ggml.h --------- Co-authored-by: Cebtenzzre <[email protected]> Co-authored-by: slaren <[email protected]>
1 parent 7f1a0fe commit 0ccfc62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ extern "C" {
473473
int n_dims;
474474
int64_t ne[GGML_MAX_DIMS]; // number of elements
475475
size_t nb[GGML_MAX_DIMS]; // stride in bytes:
476-
// nb[0] = sizeof(type)
477-
// nb[1] = nb[0] * ne[0] + padding
476+
// nb[0] = ggml_type_size(type)
477+
// nb[1] = nb[0] * (ne[0] / ggml_blck_size(type)) + padding
478478
// nb[i] = nb[i-1] * ne[i-1]
479479

480480
// compute data

0 commit comments

Comments
 (0)