Skip to content

Commit

Permalink
Correct name of structured outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed Nov 8, 2023
1 parent 4c6af62 commit aed1b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/tf/core/test_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_topk_encoder(music_streaming_data: Dataset):
loaded_topk_encoder = tf.keras.models.load_model(tmpdir)
batch_output = loaded_topk_encoder(batch[0])

output_signature = loaded_topk_encoder.signatures["serving_default"].structured_output
output_signature = loaded_topk_encoder.signatures["serving_default"].structured_outputs
assert len(output_signature) == 2
assert output_signature["scores"] == tf.TensorSpec(
shape=(None, TOP_K), dtype=tf.float32, name="scores"
Expand Down

0 comments on commit aed1b27

Please sign in to comment.