lenetOnMnistDatasetExportImportToTxt

fun lenetOnMnistDatasetExportImportToTxt()

This examples demonstrates model and model weights export and import back:

  • Model is exported as graph in .pb format, weights are exported in custom (txt) format.

  • Model is trained on Mnist dataset.

  • It saves all the data to the project root directory.

  • TensorFlowInferenceModel is created via graph and weights loading.

  • TensorFlowInferenceModel is reshaped and evaluated on first 10'000 images.