diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-03-21 13:08:02 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-03-21 13:10:39 -0700 |
commit | 6741f81b8216862a83703122191a8632fda333a2 (patch) | |
tree | f5a89ad417cfe7751c25578fe4815510527d3708 /tensorflow/stream_executor/stream.cc | |
parent | a6a7de3d36a154e4382283a804531f148fca6c9b (diff) |
Make strcat.{h,cc} independent of Eigen.
PiperOrigin-RevId: 189954596
Diffstat (limited to 'tensorflow/stream_executor/stream.cc')
-rw-r--r-- | tensorflow/stream_executor/stream.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/stream.cc b/tensorflow/stream_executor/stream.cc index 6bbb5f0b2e..1e3afde268 100644 --- a/tensorflow/stream_executor/stream.cc +++ b/tensorflow/stream_executor/stream.cc @@ -17,6 +17,7 @@ limitations under the License. #include "tensorflow/stream_executor/platform/port.h" +#include "third_party/eigen3/Eigen/Core" #include "tensorflow/stream_executor/blas.h" #include "tensorflow/stream_executor/host_buffer.h" #include "tensorflow/stream_executor/lib/stacktrace.h" @@ -117,7 +118,9 @@ string ToVlogString(const DeviceMemoryBase *memory) { return ToVlogString(*memory); } -string ToVlogString(const Eigen::half &h) { return port::StrCat(h); } +string ToVlogString(const Eigen::half &h) { + return port::StrCat(static_cast<float>(h)); +} string ToVlogString(int i) { return port::StrCat(i); } |