forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix discrepancy between docs and registered kernels for `tf.ones_like…
…`/`tf.zeros_like` (tensorflow#13598) * Fix discrepancy between docs and registered kernels for `tf.ones_like` This fix tries to address the discrepancy between docs and registered kernels for `tf.ones_like`. From the implementation the OnesLike is registered with all POD types. However, in the documentation several data types are missing (uint8, int8, uint16, int16, bool). This fix addresses the issue by adding missing types to documentation. Signed-off-by: Yong Tang <[email protected]> * Fix python docs for `tf.ones_like` This commit fixes python docs for `tf.ones_like` Signed-off-by: Yong Tang <[email protected]> * Fix python docs for `tf.zeros_like` This commit fixes python docs for `tf.zeros_like` Signed-off-by: Yong Tang <[email protected]> * Add test cases for different dtypes on `tf.ones_like` and `tf.zeros_like` Signed-off-by: Yong Tang <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters