Colab example doesn't run successfuly

Đang mở
#263 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
google-cloud, jupyter-notebook, python, tensorflow

Hướng nghiên cứu

Read the codelabs introduction.ipynb notebook and inspect the Model Training block that fails in Google Colab. Start by checking how the notebook installs or imports Lingvo and its pruning dependencies; the traceback ends with a missing graph_compression module. Done means the example runs through Model Training in Colab, with the dependency issue resolved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hello,

I am trying to run the jupyter notebook example "introduction.ipynb" on "codelabs" folder using Google Colab.
However, it gives me the following error:

2021-05-12 03:12:03.347414: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
WARNING:absl:Lingvo does not support eager execution yet. Please disable eager execution with tf.compat.v1.disable_eager_execution() or proceed at your own risk.
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/dist-packages/lingvo/trainer.py", line 39, in <module>
    from lingvo import executor
  File "/usr/local/lib/python3.7/dist-packages/lingvo/executor.py", line 21, in <module>
    from lingvo.core import base_model
  File "/usr/local/lib/python3.7/dist-packages/lingvo/core/base_model.py", line 35, in <module>
    from model_pruning.python import pruning
  File "/usr/local/lib/python3.7/dist-packages/model_pruning/__init__.py", line 37, in <module>
    from model_pruning.python.pruning_interface import apply_matrix_compression
  File "/usr/local/lib/python3.7/dist-packages/model_pruning/python/pruning_interface.py", line 44, in <module>
    from graph_compression.compression_lib import compression_wrapper_py2 as compression_wrapper
ModuleNotFoundError: No module named 'graph_compression'

When I try to run the "Model Training" block.

Any ideas how could we fix this problem ?

Ngôn ngữ chính
Python
Star
2.9k
Fork
452
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/lingvo

Tất cả issue của tensorflow/lingvo

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.