Skip to content

Commit 50a44ef

Browse files
alanchiaotensorflower-gardener
authored andcommitted
Fix typos in tutorials.
PiperOrigin-RevId: 312520426
1 parent 459ecec commit 50a44ef

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

tensorflow_model_optimization/g3doc/guide/pruning/comprehensive_guide.ipynb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -810,19 +810,6 @@
810810
},
811811
"outputs": [],
812812
"source": [
813-
"# Define the model.\n",
814-
"base_model = setup_model()\n",
815-
"base_model.load_weights(pretrained_weights) # optional but recommended for model accuracy\n",
816-
"model_for_pruning = tfmot.sparsity.keras.prune_low_magnitude(base_model)\n",
817-
"\n",
818-
"# Typically you train the model here.\n",
819-
"\n",
820-
"model_for_export = tfmot.sparsity.keras.strip_pruning(model_for_pruning)\n",
821-
"\n",
822-
"print(\"final model\")\n",
823-
"model_for_export.summary()\n",
824-
"\n",
825-
"print(\"\\n\")\n",
826813
"# Define the model.\n",
827814
"base_model = setup_model()\n",
828815
"base_model.load_weights(pretrained_weights) # optional but recommended for model accuracy\n",

tensorflow_model_optimization/g3doc/guide/pruning/pruning_with_keras.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"1. Train a `tf.keras` model for MNIST from scratch.\n",
9292
"2. Fine tune the model by applying the pruning API and see the accuracy.\n",
9393
"3. Create 3x smaller TF and TFLite models from pruning.\n",
94-
"4. Create a 10x TFLite smaller model from combining pruning and post-training quantization.\n",
94+
"4. Create a 10x smaller TFLite model from combining pruning and post-training quantization.\n",
9595
"5. See the persistence of accuracy from TF to TFLite."
9696
]
9797
},

0 commit comments

Comments
 (0)