diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-31 08:37:09 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-05-31 09:47:15 -0700 |
commit | 2c36226b6671367f681746f8cf850b91d2c17883 (patch) | |
tree | 342ad60f5007df86b539db116369b31db0da7c54 /tensorflow/core/lib/strings/strcat_test.cc | |
parent | bfbd4806323123706c902e9a3cd0b3ff061db371 (diff) |
Made the summary operations work with fp16
Change: 123649866
Diffstat (limited to 'tensorflow/core/lib/strings/strcat_test.cc')
-rw-r--r-- | tensorflow/core/lib/strings/strcat_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/core/lib/strings/strcat_test.cc b/tensorflow/core/lib/strings/strcat_test.cc index bb28688865..7f18601808 100644 --- a/tensorflow/core/lib/strings/strcat_test.cc +++ b/tensorflow/core/lib/strings/strcat_test.cc @@ -17,6 +17,7 @@ limitations under the License. #include <string> +#include "third_party/eigen3/Eigen/Core" #include "tensorflow/core/lib/strings/stringprintf.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/types.h" @@ -119,6 +120,10 @@ TEST(StrCat, Basics) { result = StrCat("A hundred K and a half squared is ", d); EXPECT_EQ(result, "A hundred K and a half squared is 10000100000.25"); + Eigen::half h(10007.0f); + result = StrCat("Ten thousand seven is approximately ", h); + EXPECT_EQ(result, "Ten thousand seven is approximately 10008"); + result = StrCat(1, 2, 333, 4444, 55555, 666666, 7777777, 88888888, 999999999); EXPECT_EQ(result, "12333444455555666666777777788888888999999999"); } |