Skip to content

English-to-Spanish translation with KerasHub: decoded sentence is the same as the input sentence #1969

@jorcisai

Description

@jorcisai

Issue Type

Bug

Source

source

Keras Version

3.6.0

Custom Code

Yes

OS Platform and Distribution

Linux Ubuntu 24.04

Python version

3.10.15

GPU model and memory

NVIDIA GeForce RTX 4060 8GB

Current Behavior?

The decoded sentence is the same as the input sentence

Standalone code to reproduce the issue or tutorial link

https://colab.research.google.com/drive/1NYqZTX0Cn4Gw4mRLt1hPUfXPIV0odrLs?usp=sharing

Relevant log output

encoder_input_tokens = [[  34. 1082.  119.   71.   72.  177.   11.    0.    0.    0.    0.    0.
     0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.
     0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.
     0.    0.    0.    0.]]
generated_tokens = [[   2. 1082.  119.  568.   72.  177.   11.    0.    0.    0.    0.    0.
     0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.
     0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.    0.
     0.    0.    0.    0.]]
** Example 0 **
i grew up in that house.
diciendo tengo manera ú ese )

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions