Commit 7603480f authored by Yong Tang's avatar Yong Tang Committed by gunan
Browse files

Add support of `axis` for `tf.unique` (#12952)



* Convert unique implementation to be compatible with axis

This commit made the conversion so that unique could
be extended with axis. A custom unordered_map is used.

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

* Add support of `axis` for `tf.unique`

This commit adds support of `axis` for `tf.unique`.

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

* Add test cases of `axis` support for `tf.unique`.

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>

* Change forward_input_or_allocate_output to allocate_output to fix

the following failures:
```
//tensorflow/python/debug:analyzer_cli_test
//tensorflow/python/debug:session_debug_file_test
//tensorflow/python/feature_column:feature_column_test
```

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