Unverified Commit df94175a authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

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.
parent 61a88252
......@@ -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
}
......
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