ImportError: cannot import name 'gen_rasterizer_op' when trying to import tensorflow_graphics.rendering.opengl.triangle_rasterizer
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
使用报告中的 Ubuntu、TensorFlow 2.2.0 和 tensorflow-graphics 2020.5.20 版本,重现从 tensorflow_graphics.rendering.opengl.triangle_rasterizer.py 导入的过程。检查导入 gen_rasterizer_op 失败的原因;当导入 triangle_rasterizer 成功且不出现该 ImportError 时,问题即得到解决。
由索引模型根据 Issue 内容生成。
描述
Hi, I am new in tensorflow, and when I trying to import tensorflow_graphics.rendering.opengl.triangle_rasterizer, the following error shows:
import tensorflow as tf
import tensorflow_graphics.rendering.opengl.triangle_rasterizer as tr
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in ()
1 import tensorflow as tf
----> 2 import tensorflow_graphics.rendering.opengl.triangle_rasterizer as tr
/home/linfang/.local/lib/python3.6/site-packages/tensorflow_graphics/rendering/opengl/triangle_rasterizer.py in ()
26 import tensorflow.compat.v2 as tf
27
---> 28 from tensorflow_graphics.rendering.opengl import gen_rasterizer_op as render_ops
29 from tensorflow_graphics.rendering.opengl import math as glm
30 from tensorflow_graphics.util import export_api
ImportError: cannot import name 'gen_rasterizer_op'
I am using Ubuntu 18.04, and version info:
tensorflow-gpu 2.2.0
tensorflow-graphics 2020.5.20
How can I solve it? Thanks a lot
- 主要语言
- Python
- 星标
- 2.8k
- 派生
- 374
- 平均合并
- 5 天 9 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tensorflow/graphics 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
tensorflow/graphics#468 ·
-
难度 5/5 一周以上 新手友好度 25/100
tensorflow/graphics#5337 ·
-
难度 3/5 1-2 天 新手友好度 25/100
tensorflow/graphics#730 ·
-
难度 4/5 3-5 天 新手友好度 35/100
tensorflow/graphics#729 ·
-
难度 5/5 一周以上 新手友好度 10/100
tensorflow/graphics#724 ·
查看 tensorflow/graphics 的全部 Issue
相似的 Issue
-
`destroy` sans terminal répond « Aborted. » au lieu de réclamer `--yes` comme `clean` et `reset`未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
stephrobert/dsoxlab#354 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
jasonacox/pypowerwall#472 ·
维护者通常 1 天内回复
-
[Bug]: DoubleMLRDDData accepts a score_col that is no data column (as in its docstring example); the running variable then becomes a covariate and RDFlex fails可能已有人在做 @vrjdev 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
DoubleML/doubleml-for-py#455 ·
维护者通常 1 天内回复
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)可能已有人在做 @rohit-jsfreaky 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
Graphify-Labs/graphify#5110 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
assafelovic/gpt-researcher#2277 ·
维护者通常 10 天内回复