Skip to content

Commit

Permalink
Fix bug in classification sample
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bat committed Aug 30, 2023
1 parent 9b10ef6 commit b692d72
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ def optimize_model(args):
# Step 6: Execute the pipeline.
compressed_model = pipeline.run(model)

# Step 7 (Optional): Compress model weights quantized precision
# in order to reduce the size of final .bin file.
if not args.keep_uncompressed_weights:
compress_model_weights(compressed_model)
# Step 7: Compress model weights quantized precision
# in order to reduce the size of final .bin file.
compress_model_weights(compressed_model)

return compressed_model, pipeline

Expand Down

0 comments on commit b692d72

Please sign in to comment.