Make tf.clip_by_value not crash on empty tensors
Also rearrange the code to remove duplication. No tests yet; I'll leave refactoring the test cases for empty tensor coverage to someone else. Fixes #19337.
Loading
Please sign in to comment
Also rearrange the code to remove duplication. No tests yet; I'll leave refactoring the test cases for empty tensor coverage to someone else. Fixes #19337.