Commit ce11f0b6 authored by Geoffrey Irving's avatar Geoffrey Irving
Browse files

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.
parent 51ef1605
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment