Skip to content

Neural machine translation with transformer decoded sentence is the same as input sentence #1968

@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?

I have noticed that the decoded sentence is the same as the input sentence (please see [1]).

Standalone code to reproduce the issue or tutorial link

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

Relevant log output

tf.Tensor(
[[ 34 358  31  42   0   0   0   0   0   0   0   0   0   0   0   0   0   0
    0   0]], shape=(1, 20), dtype=int64)
tf.Tensor(
[[  2 358  31  42   0   0   0   0   0   0   0   0   0   0   0   0   0   0
    0   0]], shape=(1, 20), dtype=int64)
I'm angry with her.
[start] estudiar las esta

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions