Skip to content

Commit

Permalink
ggml_tensor: update the structure comments. (ggerganov#3283)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Sep 28, 2023
1 parent 7f1a0fe commit 0ccfc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ccfc62

Please sign in to comment.