Skip to content

New out-of-the-box error as of May 2025 (tf version 2.19.0) #2107

@jasonnett80

Description

@jasonnett80

I've been coming back to this example for testing for a few years now and there is a new error that this code now produces out-of-the-box that it did not as of a few months ago (winter 2025). This is in reference to the english-to-spanish machine translation example.

https://keras.io/examples/nlp/neural_machine_translation_with_transformer/

inputs["encoder_inputs"].shape: (64, 20)
inputs["decoder_inputs"].shape: (64, 20)
targets.shape: (64, 20)
2025-05-21 17:05:53.777692: I tensorflow/core/framework/local_rendezvous.cc:407] Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence
Traceback (most recent call last):
  File "/home/dev_account/project/transformer_keras/transformer_keras_original.py", line 417, in <module>
    decoder = keras.Model([decoder_inputs, encoded_seq_inputs], decoder_outputs)
  File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/tracking.py", line 26, in wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/keras/src/models/functional.py", line 136, in __init__
    Function.__init__(self, inputs, outputs, name=name)
  File "/usr/local/lib/python3.10/dist-packages/keras/src/ops/function.py", line 89, in __init__
    raise ValueError("`inputs` not connected to `outputs`")
ValueError: `inputs` not connected to `outputs`

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions