quantize_weights | R Documentation |
Note that the model must be built first before calling this method.
quantize_weights()
will recursively call layer$quantize(mode)
in all layers and
will be skipped if the layer doesn't implement the function.
Currently only Dense
and EinsumDense
layers support quantization.
quantize_weights(object, mode, ...)
object |
A Keras Model or Layer. |
mode |
The mode of the quantization. Only 'int8' is supported at this time. |
... |
Passed on to the |
model
, invisibly. Note this is just a convenience for usage with |>
, the
model is modified in-place.
Other layer methods:
count_params()
get_config()
get_weights()
reset_state()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.