Commit c43d777b authored by Ouwen Huang's avatar Ouwen Huang Committed by Martin Wicke
Browse files

Allow _FilterFloat to pass None values. (#13834)

* Allow _FilterFloat to pass None values.

[Tensorflow 1.3: tf.constant with dtype=[float32, float64, float16] may have inconsistent behavior. #13827](https://github.com/tensorflow/tensorflow/issues/13827)

 - This fix allows _FilterFloat to allow None values to pass.
 - We add `tf.float16` into the `_TF_TO_IS_OK` dictionary.
 - We add tests for `convert_to_tensor` and `tensor_util`.

* Added `tf.float16` into the _TF_TO_IS_OK dictionary

[Tensorflow 1.3: tf.constant with dtype=[float32, float64, float16] may have inconsistent behavior. #13827](https://github.com/tensorflow/tensorflow/issues/13827)

This fix adds `tf.float16` into the `_TF_TO_IS_OK` dictionary for consistent error checking.
A note is added to `convert_to_tensor` on how `None` values are handled.
parent 4274acbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment