Commit c81acfb0 authored by Yong Tang's avatar Yong Tang Committed by Martin Wicke
Browse files

Add 'axis' option for 'tf.boolean_mask()' (#11558)



* Add 'axis' option for 'tf.boolean_mask()'

This fix tries to address 9721 where it was not possible to pass an
'axis' option for 'tf.boolean_mask()'.

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

* Add tests for 'axis' option in 'tf.boolean_mask()'

This fix adds tests for 'axis' option in 'tf.boolean_mask()'

This fix is part of the effort to fix 9721.

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

* Move the new args 'axis=None' to the end for backward compatibility

This fix move the new args 'axis=None' to the end for backward compatibility
and adds additional tests to cover cases where mask is more than 1-D.

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

* Update docstring for 'tf.boolean_mask()'

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

* Update goldens for api compatibility changes.

This commit update API goldens.

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