Skip to content

Commit

Permalink
Migrate tensorflow_graphics/rendering/{kernels, opengl, tests, textur…
Browse files Browse the repository at this point in the history
…e, volumetric} to Python 3.

PiperOrigin-RevId: 379251214
  • Loading branch information
tensorflower-gardener authored and Copybara-Service committed Jun 14, 2021
1 parent 898ed88 commit ca88c65
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
Expand Up @@ -13,9 +13,14 @@
# limitations under the License.
"""CPU rasterization backend."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import enum
from typing import Tuple

from six.moves import range
import tensorflow as tf

from tensorflow_graphics.rendering import framebuffer as fb
Expand Down
Expand Up @@ -13,9 +13,14 @@
# limitations under the License.
"""Tests for the opengl rasterizer op."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from absl.testing import parameterized
import numpy as np
import six
from six.moves import range
import tensorflow as tf

from tensorflow_graphics.geometry.transformation import look_at
Expand Down Expand Up @@ -189,8 +194,8 @@ def check_lazy_shape():

@parameterized.parameters(
("The variable names, kinds, and values must have the same size.",
["var1"], ["buffer", "buffer"], [[1.0], [1.0]],
tf.errors.InvalidArgumentError, ValueError),
["var1"], ["buffer", "buffer"
], [[1.0], [1.0]], tf.errors.InvalidArgumentError, ValueError),
("The variable names, kinds, and values must have the same size.",
["var1", "var2"], ["buffer"], [[1.0], [1.0]],
tf.errors.InvalidArgumentError, ValueError),
Expand Down
5 changes: 5 additions & 0 deletions tensorflow_graphics/rendering/tests/interpolate_test.py
Expand Up @@ -13,7 +13,12 @@
# limitations under the License.
"""Tests for tensorflow_graphics.rendering.tests.interpolate."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from absl.testing import parameterized
from six.moves import range
import tensorflow as tf

from tensorflow_graphics.rendering import interpolate
Expand Down
5 changes: 5 additions & 0 deletions tensorflow_graphics/rendering/texture/mipmap.py
Expand Up @@ -28,8 +28,13 @@
texturing). You can find how the uv-coordinates map to textures exactly in the
documentation of the ops.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from typing import Optional, Sequence, Text

from six.moves import range
import tensorflow as tf
from tensorflow_graphics.rendering.texture import texture_map
from tensorflow_graphics.util import export_api
Expand Down

0 comments on commit ca88c65

Please sign in to comment.