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.cc | |
parent | bfbd4806323123706c902e9a3cd0b3ff061db371 (diff) |
Made the summary operations work with fp16
Change: 123649866
Diffstat (limited to 'tensorflow/core/lib/strings/strcat.cc')
-rw-r--r-- | tensorflow/core/lib/strings/strcat.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/lib/strings/strcat.cc b/tensorflow/core/lib/strings/strcat.cc index 0c659e236c..064be5e19c 100644 --- a/tensorflow/core/lib/strings/strcat.cc +++ b/tensorflow/core/lib/strings/strcat.cc @@ -20,6 +20,7 @@ limitations under the License. #include <stdio.h> #include <string.h> +#include "third_party/eigen3/Eigen/Core" #include "tensorflow/core/lib/gtl/stl_util.h" #include "tensorflow/core/platform/logging.h" @@ -28,6 +29,9 @@ namespace strings { AlphaNum gEmptyAlphaNum(""); +AlphaNum::AlphaNum(const Eigen::half &f) + : piece_(digits_, strlen(FloatToBuffer(static_cast<float>(f), digits_))) {} + AlphaNum::AlphaNum(Hex hex) { char *const end = &digits_[kFastToBufferSize]; char *writer = end; |