Skip to content

Commit 379fe62

Browse files
authored
Fix condition tracing in scale_channel (#1830)
1 parent 0b95482 commit 379fe62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tensorflow_addons/image/color_ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
def equalize_image(image: TensorLike, data_format: str = "channels_last") -> tf.Tensor:
3131
"""Implements Equalize function from PIL using TF ops."""
3232

33+
@tf.function
3334
def scale_channel(image, channel):
3435
"""Scale the data in the channel to implement equalize."""
3536
image_dtype = image.dtype

0 commit comments

Comments
 (0)