"git@developer.sourcefind.cn:modelzoo/template_xxx.git" did not exist on "a0166be0b5a643e4e67ab979bd38890eb20c2b5e"
Commit 18979ad4 authored by Michael Yang's avatar Michael Yang
Browse files

convert: fix default shape

parent 8e0ef931
......@@ -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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment