Skip to content

Commit

Permalink
do not cache temporary blob for uploading weight (#5266)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Jan 5, 2024
1 parent 556b79c commit a31f662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ int NetPrivate::upload_model()
}

Option opt_upload = opt;
opt_upload.blob_allocator = 0;
opt_upload.workspace_allocator = 0;
opt_upload.blob_vkallocator = weight_vkallocator;
opt_upload.workspace_vkallocator = weight_vkallocator;
opt_upload.staging_vkallocator = weight_staging_vkallocator;
Expand Down

0 comments on commit a31f662

Please sign in to comment.