Commit 2ebfeda9 authored by Tijmen Verhulsdonck's avatar Tijmen Verhulsdonck Committed by drpngx
Browse files

Remove python boolean check from adjust_gamma (#14555)

* Update image_ops_impl.py

* Update image_ops_impl.py

* Update image_ops_impl.py

Added tensor not tensor based switch, to determine whether or not to use the tensor based assert or python boolean assert.

* Minor fixes

Check that gamma is a tensor, not image.
Update comment per style and correctness.
Print out gamma value in static error check.

* Fixed bugs in gamma implementation, switch to using _assert for tensor and python float assertion. Added unit tests.

* Use TF dtype for TF constant

* Fix style

* Fix typo in previous commit

* Update image_ops_test.py
parent e1a4cef6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment