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 <slarengh@gmail.com>

* Update ggml.h

---------

Co-authored-by: Cebtenzzre <cebtenzzre@gmail.com>
Co-authored-by: slaren <slarengh@gmail.com>
  • Loading branch information
3 people authored and yusiwen committed Oct 7, 2023
1 parent 99c807d commit 86f2016
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 86f2016

Please sign in to comment.