Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frontend][Relay][Keras] Fix concatenate convert function in axis parsing #15175

Merged
merged 16 commits into from
Jul 1, 2023
Prev Previous commit
Next Next commit
Update test_forward.py
jikechao authored Jun 30, 2023
commit 0f3d8c325bc50fd8b28ce57084f61f17f1440215
6 changes: 4 additions & 2 deletions tests/python/frontend/keras/test_forward.py
Original file line number Diff line number Diff line change
@@ -167,13 +167,15 @@ def test_forward_concatenate(self, keras_mod):
out = merge_func([data1, data2])
keras_model = keras_mod.models.Model([data1, data2], out)
verify_keras_frontend(keras_model, layout="NHWC")
verify_keras_frontend(keras_model, layout="NCHW")
# test default axis (e.g., -1)
data1 = keras_mod.layers.Input(shape=(1, 2, 2))
data2 = keras_mod.layers.Input(shape=(1, 2, 2))
data2 = keras_mod.layers.Input(shape=(1, 2, 3))
merge_func = keras_mod.layers.Concatenate()
out = merge_func([data1, data2])
keras_model = keras_mod.models.Model([data1, data2], out)
verify_keras_frontend(keras_model)
verify_keras_frontend(keras_model, layout="NHWC")
verify_keras_frontend(keras_model, layout="NCHW")

def test_forward_merge_dot(self, keras_mod):
"""test_forward_merge_dot"""