8000 ggml_tensor: update the structure comments. by huajsj · Pull Request #3283 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

ggml_tensor: update the structure comments. #3283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ggml_tensor: update the structure comments.
  • Loading branch information
huajsj committed Sep 20, 2023
commit 191f11c0100d81b74e7d5fea9c7449c52fac917f
4 changes: 2 additions & 2 deletions ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,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