ggml : ggml_get_rows support 2D indexing [n_tokens, n_experts] (cpu only)
This commit is contained in:
parent
8b185b7030
commit
7372b62271
2 changed files with 10 additions and 8 deletions
1
ggml.h
1
ggml.h
|
@ -1263,6 +1263,7 @@ extern "C" {
|
|||
struct ggml_context * ctx,
|
||||
struct ggml_tensor * a);
|
||||
|
||||
// supports 3D: a->ne[2] == b->ne[1]
|
||||
GGML_API struct ggml_tensor * ggml_get_rows(
|
||||
struct ggml_context * ctx,
|
||||
struct ggml_tensor * a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue