Skip to content

Commit

Permalink
Small quantization doc corrections (apple#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
kory authored Jun 19, 2020
1 parent 1afb9cb commit 0730319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/APIExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,10 @@ class MyLayerSelector(QuantizedLayerSelector):
ret = super(MyLayerSelector, self).do_quantize(layer)
if not ret or layer.name == 'dense_2':
return True
return ret


selector = MyLayerSelector()
quantized_model = quantize_weights(
mlmodel, 8, quantization_mode='linear', selector=selector)
model, 8, quantization_mode='linear', selector=selector)
```

0 comments on commit 0730319

Please sign in to comment.