Skip to content

Commit

Permalink
Merge pull request tensorflow#35293 from HotPotatoC:hotpotatoc-2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 287554502
Change-Id: I3cc6195be5d828847f81ec1f4eae80b18db9d447
  • Loading branch information
jpienaar committed Dec 31, 2019
2 parents 3a094e6 + fc47bc4 commit 52f7fe6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tensorflow/python/ops/image_ops_impl.py
Expand Up @@ -2931,6 +2931,13 @@ def rgb_to_yiq(images):
Outputs a tensor of the same shape as the `images` tensor, containing the YIQ
value of the pixels.
The output is only well defined if the value in images are in [0,1].
Usage Example:
>>> x = tf.constant([[[1.0, 2.0, 3.0]]])
>>> tf.image.rgb_to_yiq(x)
<tf.Tensor: shape=(1, 1, 3), dtype=float32,
numpy=array([[[ 1.815 , -0.91724455, 0.09962624]]], dtype=float32)>
Args:
images: 2-D or higher rank. Image data to convert. Last dimension must be
Expand Down
2 changes: 1 addition & 1 deletion third_party/mlir/BUILD
Expand Up @@ -9,7 +9,7 @@ package(default_visibility = [":friends"])

package_group(
name = "subpackages",
packages = ["//third_party/llvm/llvm/projects/google_mlir/..."],
packages = ["//..."],
)

# In particular the OWNERS file of the dependent project should be updated.
Expand Down

0 comments on commit 52f7fe6

Please sign in to comment.