Skip to content

Bug in Seq2Seq tutorial #1182

Open
Open
@Morasiu

Description

@Morasiu

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win10
  • TensorFlow version and how it was installed (source or binary): '2.1.0', Just pip install
  • TensorFlow-Addons version and how it was installed (source or binary): '0.8.2', Just pip install
  • Python version: 3.7
  • Is GPU used? (yes/no): Yes

Describe the bug

I just straight up copied all the code from the tutorial and merged it into one script. When I try to run it I got:

at:

data = raw_data[:10000, :2] 
Exception has occurred: IndexError
too many indices for array

I guess that because of raw_data has a structure like this:

raw_data = [
    ["en", "ger"],
    ["en2", "ger"]
]

So a simple change to should resolve this.

data = raw_data[:10000] 

Code to reproduce the issue

Just code from the tutorial.

Other info / logs

I can provide it if will be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtest-casesRelated to Addons teststutorials

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions