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

Use `keepdims` and maintain backward compatible for `keep_dims` (#12756)



* Use `keepdims` and maintain backward compatible for `keep_dims`

This fix tries to address the issue raised in 6815 where
both `keepdims` and `keep_dims` were used with inconsistency.

This fix changes related api to `keepdims` while at the same
time maintain backward compatible for `keep_dims` so that
use will not be impacted.

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

* Use `@deprecated_args`

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

* Update goldens API for compatibility changes

This commit updates goldens API:
```
bazel-bin/tensorflow/tools/api/tests/api_compatibility_test \
          --update_goldens True
```

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