Merge 3d00d68344 into 76912c062a
This commit is contained in:
commit
e611ec3429
|
|
@ -1722,7 +1722,7 @@ func (t *Tensor) Duplicate(ctx ml.Context) ml.Tensor {
|
|||
func (t *Tensor) TopK(ctx ml.Context, k int) ml.Tensor {
|
||||
return &Tensor{
|
||||
b: t.b,
|
||||
t: C.ggml_argsort_top_k(ctx.(*Context).ctx, t.t, C.int(k)),
|
||||
t: C.ggml_top_k(ctx.(*Context).ctx, t.t, C.int(k)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue