From e0cd51166130d03b8ca1f0261478a0c4ddd983f2 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Tue, 7 Oct 2025 16:46:37 -0700 Subject: [PATCH] fix test --- convert/tensor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/tensor.go b/convert/tensor.go index 11a171db..9b8517f1 100644 --- a/convert/tensor.go +++ b/convert/tensor.go @@ -35,7 +35,7 @@ func splitDim(t Tensor, dim int, splits ...split) iter.Seq[*ggml.Tensor] { slice := split.slices if len(slice) == 0 { - slice := slices.Repeat([]tensor.Slice{nil}, len(shape)) + slice = slices.Repeat([]tensor.Slice{nil}, len(shape)) slice[dim] = tensor.S(offset, offset+int(shape[dim])) offset += int(shape[dim]) }