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
18979ad4
"git@developer.sourcefind.cn:modelzoo/template_xxx.git" did not exist on "a0166be0b5a643e4e67ab979bd38890eb20c2b5e"
Commit
18979ad4
authored
Mar 08, 2024
by
Michael Yang
Browse files
convert: fix default shape
parent
8e0ef931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
convert/convert.go
convert/convert.go
+1
-1
No files found.
convert/convert.go
View file @
18979ad4
...
...
@@ -103,7 +103,7 @@ func ReadSafeTensors(fn string, offset uint64) ([]llm.Tensor, uint64, error) {
return
[]
llm
.
Tensor
{},
0
,
err
}
shape
:=
[
4
]
uint64
{
0
,
0
,
0
,
0
}
shape
:=
[
4
]
uint64
{
1
,
1
,
1
,
1
}
for
cnt
,
s
:=
range
data
.
Shape
{
shape
[
cnt
]
=
uint64
(
s
)
}
...
...
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