Commit fe2b9a2b authored by Yong Tang's avatar Yong Tang Committed by drpngx
Browse files

Add shape function SingleImageRandomDotStereograms (#15431)



* Add shape function SingleImageRandomDotStereograms

This fix tries to address the issue raised in 15429 where
there is no shape function for SingleImageRandomDotStereograms.

This fix adds the shape function for `SingleImageRandomDotStereograms`.

NOTE: `SingleImageRandomDotStereograms` takes an attribute
of `output_image_shape` which is in the format of
`[X, Y, C]` (`[ImageX, ImageY, Channel]`. However, the actual
data output is in the format of
`[ImageY, ImageX, Channel]` (`[h, w, c]`)
so by default the output_image_shape has the value
of [1024, 768, 1] but the output data will be [768, 1024, 1].
And if `[1200, 800, 1]` is used explicitly then the output
data shape will be `[800, 1200, 1]`.

This fix does not change the behavior for now.

This fix fixes 15429.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add test cases for shape function for SingleImageRandomDotStereograms

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update Bazel BUILD file

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Address review feedback.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 64cb8494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment