Skip to content

Segmentation fault when using tfa.rotate in tf-nightly #1277

@bw0248

Description

@bw0248

System information

  • OS Platform: Linux Ubuntu 18.04.3 LTS
  • TensorFlow version: tf-nightly (2.2.0-dev20200310) installed with pip
  • TensorFlow-Addons version: 0.8.3 (pip) and tfa-nightly (0.9.0-dev; pip)
  • Python version: 3.6.9
  • Is GPU used?: yes

Describe the bug
I currently have to use tf-nightly because of a separate issue. When I use tfa.rotate I get a segmentation fault. Behavior is the same with tfa 0.8.3 and tfa-nightly.

Code to reproduce the issue

import tensorflow as tf
import tensorflow_addons as tfa

img = tf.io.read_file(IMG_PATH)
img = tf.image.decode_png(img)
print(img.shape)
img = tfa.image.rotate(img, 90)

Output:

(128, 128, 3)
Segmentation fault (core dumped)

I also tried interpolation="BILINEAR". Problem is the same.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions