tf.lite.Optimize.OPTIMIZE_FOR_SIZE is deprecated, use DEFAULT instead

main
Aurélien Geron 2022-04-17 12:17:50 +12:00
parent 58e5232e29
commit 410367eed1
1 changed files with 1 additions and 10 deletions

View File

@ -1329,7 +1329,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]" "converter.optimizations = [tf.lite.Optimize.DEFAULT]"
] ]
}, },
{ {
@ -1337,13 +1337,6 @@
"execution_count": 49, "execution_count": 49,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:absl:Optimization option OPTIMIZE_FOR_SIZE is deprecated, please use optimizations=[Optimize.DEFAULT] instead.\n"
]
},
{ {
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
@ -1356,8 +1349,6 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"INFO:tensorflow:Assets written to: /var/folders/wy/h39t6kb11pnbb0pzhksd_fqh0000gq/T/tmp6ffbc1qs/assets\n", "INFO:tensorflow:Assets written to: /var/folders/wy/h39t6kb11pnbb0pzhksd_fqh0000gq/T/tmp6ffbc1qs/assets\n",
"WARNING:absl:Optimization option OPTIMIZE_FOR_SIZE is deprecated, please use optimizations=[Optimize.DEFAULT] instead.\n",
"WARNING:absl:Optimization option OPTIMIZE_FOR_SIZE is deprecated, please use optimizations=[Optimize.DEFAULT] instead.\n",
"WARNING:absl:Buffer deduplication procedure will be skipped when flatbuffer library is not properly loaded\n", "WARNING:absl:Buffer deduplication procedure will be skipped when flatbuffer library is not properly loaded\n",
"2022-04-10 09:26:30.319286: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:357] Ignored output_format.\n", "2022-04-10 09:26:30.319286: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:357] Ignored output_format.\n",
"2022-04-10 09:26:30.319301: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:360] Ignored drop_control_dependency.\n", "2022-04-10 09:26:30.319301: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:360] Ignored drop_control_dependency.\n",