Skip to content

Commit

Permalink
add a e2e test for keras lstm fusion.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 299474392
Change-Id: I1cb636a046e893154552061289667a9a5e49680d
  • Loading branch information
renjie-liu authored and tensorflower-gardener committed Mar 7, 2020
1 parent 3874b28 commit 56ee67f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/lite/testing/model_coverage/model_coverage_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def compare_models_v2(tflite_model,
tf_results = [tf_results[list(tf_results.keys())[0]]]
else:
tf_results = [tf_results[tflite_label] for tflite_label in tflite_labels]
else:
tf_results = [tf_results]

for tf_result, tflite_result in zip(tf_results, tflite_results):
np.testing.assert_almost_equal(tf_result, tflite_result, tolerance)
Expand Down

0 comments on commit 56ee67f

Please sign in to comment.