Skip to content

/tutorials/rnn/translate/translate.py throws TypeError: can't pickle _thread.lock objects #1790

Description

System information

  • What is the top-level directory of the model you are using:
    models/tutorials/rnn/translate/
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
    No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Windows 10
  • TensorFlow installed from (source or binary):
    Pip install
  • TensorFlow version (use command below):
    1.2.0
  • Bazel version (if compiling from source):
    n/a
  • CUDA/cuDNN version:
    Not GPU
  • GPU model and memory:
    Not GPU
  • Exact command to reproduce:
    Run translate.py

Describe the problem

When I run translate.py, it loads all the data from the internet on first run, then creates 3 layers of 1024 units, then crashes with the log below. I believe the issue lies with having a list of buckets with len > 1.

Source code / logs

https://pastebin.com/5PQeXx0J
Stack-Overflow with more details:
https://stackoverflow.com/questions/44855603/typeerror-cant-pickle-thread-lock-objects-in-seq2seq

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions