tensorflow / tensorflow/graphics
ImportError: cannot import name 'gen_rasterizer_op' when trying to import tensorflow_graphics.rendering.opengl.triangle_rasterizer
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.8k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the import from tensorflow_graphics.rendering.opengl.triangle_rasterizer.py using the reported Ubuntu, TensorFlow 2.2.0, and tensorflow-graphics 2020.5.20 versions. Inspect why the import of gen_rasterizer_op fails; the issue is resolved when importing triangle_rasterizer succeeds without that ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100