ggml: return error on failure to read tensor data (#9872)

When converting a ggml model if there is a failure to read tensor data a nil error value was being returned. It should be assigned to the actual error from reading.
This commit is contained in:
Bruce MacDonald 2025-03-18 16:51:33 -07:00 committed by GitHub
parent 61a8825216
commit df94175a0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -330,7 +330,7 @@ func New(r *os.File, params ml.BackendParams) (ml.Backend, error) {
}
}
if g.Wait() != nil {
if err := g.Wait(); err != nil {
return nil, err
}