"...git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "023a2369aeed781230f85b7ad5c441a4a120b224"
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) { ...@@ -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)
} }
......
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