Skip to content

Commit

Permalink
Further reduce memory usage in Quantizer
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 679627364
  • Loading branch information
v-dziuba authored and copybara-github committed Oct 4, 2024
1 parent 66c56f0 commit 082a2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_edge_torch/lowertools/translate_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def translate_to_ai_edge_recipe(


def quantize_model(
model: bytearray, recipe: quantizer.recipe_manager.ModelQuantizationRecipe
model: bytes, recipe: quantizer.recipe_manager.ModelQuantizationRecipe
) -> bytearray:
qt = quantizer.Quantizer(bytearray(model), recipe)
qt = quantizer.Quantizer(model, recipe)
result = qt.quantize()
return result.quantized_model

0 comments on commit 082a2fa

Please sign in to comment.