Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Nazareth <[email protected]>
  • Loading branch information
ryankarlos committed Oct 21, 2022
1 parent 494ddb4 commit 4fe5a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/flytekit/unit/extras/keras/test_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_to_python_value_and_literal(transformer, python_type, format, python_va
assert lv.scalar.blob.uri is not None

output = tf.to_python_value(ctx, lv, python_type)
if isinstance(python_val, keras.Sequential):
if isinstance(python_val, (keras.Sequential, keras.Model)):
for p1, p2 in zip(output.weights, python_val.weights):
np.testing.assert_array_equal(p1.numpy(), p2.numpy())
assert True
Expand Down

0 comments on commit 4fe5a31

Please sign in to comment.