Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e0cd5116
Commit
e0cd5116
authored
Oct 07, 2025
by
Michael Yang
Committed by
Michael Yang
Oct 10, 2025
Browse files
fix test
parent
20733207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
convert/tensor.go
convert/tensor.go
+1
-1
No files found.
convert/tensor.go
View file @
e0cd5116
...
...
@@ -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
])
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment