tf.lite.Optimize
| Просмотреть исходный код на GitHub |
Перечисление, определяющее оптимизации, применяемые при генерации графиков tflite.
Некоторые оптимизации могут привести к потере точности.
DEFAULT Стратегия оптимизации по умолчанию.
Converter will do its best to improve size and latency based on the information provided. Enhanced optimizations are gained by providing a representative_dataset. This is recommended, and is currently equivalent to the modes below. Currently, weights will be quantized and if representative_dataset is provided, activations for quantizable operations will also be quantized.
OPTIMIZE_FOR_SIZE Устарело. Делает то же, что и DEFAULT.
OPTIMIZE_FOR_LATENCY Устарело. Делает то же, что и DEFAULT.
| Переменные класса | |
|---|---|
| DEFAULT | tf.lite.Optimize |
| OPTIMIZE_FOR_LATENCY | tf.lite.Optimize |
| OPTIMIZE_FOR_SIZE | tf.lite.Optimize |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/lite/Optimize