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

Require same shape for `x` and `y` in shape function of `ApproximateEqual` (#19878)



* Require same shape for `x` and `y` in shape function of `ApproximateEqual`

In the kernel implementation of `ApproximateEqual` the shape of inputs
`x` and `y` should be the same. Though in the shape function of `ApproximateEqual`
there was no such validation. This fix adds the shape validation in the
shape function to make sure `x` and `y` are of the same shape, if they are known.

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

* Add test case for shape function of ApproximateEqual

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