Fix the mnist test for keras quantization api

PiperOrigin-RevId: 286462510
Change-Id: I6bb71d1d9151cddf04e3ceb6c32ec22039c2ae7e
This commit is contained in:
Feng Liu 2019-12-19 14:19:43 -08:00 committed by TensorFlower Gardener
parent 0535f25cf0
commit 59166604c2

View File

@ -277,7 +277,6 @@ Status ConvertGraphDefToTFLiteFlatBuffer(const toco::ModelFlags& model_flags,
auto status = ConvertTFExecutorToTFLOrFlatbuffer( auto status = ConvertTFExecutorToTFLOrFlatbuffer(
module.get(), /*export_to_mlir=*/false, emit_builtin_tflite_ops, module.get(), /*export_to_mlir=*/false, emit_builtin_tflite_ops,
emit_select_tf_ops, emit_custom_ops, quant_specs, result, &pm); emit_select_tf_ops, emit_custom_ops, quant_specs, result, &pm);
if (toco_flags.has_dump_graphviz_dir()) { if (toco_flags.has_dump_graphviz_dir()) {
TF_RETURN_IF_ERROR(DumpOpGraphToFile( TF_RETURN_IF_ERROR(DumpOpGraphToFile(
// rename once we enable the new converter feature flag. // rename once we enable the new converter feature flag.