Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpoluektov committed Mar 21, 2024
1 parent ba5c1f5 commit 5524f83
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration_tests/models/16x8/test_concatenate/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def generate_concatenate_model(input_shapes, axis):
input_data = [tf.keras.Input(shape=input_shape, dtype=np.float32, batch_size=1) for input_shape in input_shapes]
concatenated_output = tf.keras.layers.Concatenate(axis=axis)(input_data)
concatenated_output = tf.concat(input_data, axis=axis)
model = tf.keras.Model(inputs=input_data, outputs=concatenated_output)
converter = tfl.TFLiteConverter.from_keras_model(model)
def representative_dataset_gen():
Expand All @@ -28,6 +28,7 @@ def representative_dataset_gen():

generate_concatenate_model([(64), (64)], 0)
generate_concatenate_model([(2, 3), (2, 3)], 1)
generate_concatenate_model([(2, 3, 5), (2, 3, 5)], 0)
generate_concatenate_model([(2, 3, 5), (2, 3, 5)], -1)
generate_concatenate_model([(2, 6, 5, 2), (2, 6, 5, 2)], 1)
generate_concatenate_model([(2, 6, 5, 2), (2, 6, 5, 2)], 3)

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5524f83

Please sign in to comment.