convert: fix default shape
This commit is contained in:
parent
8e0ef931d8
commit
18979ad4a1
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func ReadSafeTensors(fn string, offset uint64) ([]llm.Tensor, uint64, error) {
|
||||||
return []llm.Tensor{}, 0, err
|
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 {
|
for cnt, s := range data.Shape {
|
||||||
shape[cnt] = uint64(s)
|
shape[cnt] = uint64(s)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue