Colab example doesn't run successfuly

未关闭
#263 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
google-cloud, jupyter-notebook, python, tensorflow

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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 ?

主要语言
Python
星标
2.9k
派生
452
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tensorflow/lingvo 的其他 Issue

查看 tensorflow/lingvo 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。