diff options
author | 2018-07-27 16:09:26 -0700 | |
---|---|---|
committer | 2018-07-27 16:13:15 -0700 | |
commit | 13a9453aa3c9deccb0bccd7805fb1c34004a5525 (patch) | |
tree | 09e980eddf7626076e44c7855d8cffbdb4ce12f8 /tensorflow/core/common_runtime/mkl_cpu_allocator.h | |
parent | 2beb3a9d8b9df294e7635cc23d195a76fd78de79 (diff) |
Remove references to std::string in MKL-related code.
tensorflow::string is sometimes ::string and sometimes std::string, which
makes code that uses both subtly dangerous. For example,
FactoryKeyCreator::AddAsKey() has an overload for tensorflow::string but had
many callsites passing a std::string, causing incorrect behavior on
the google platform.
PiperOrigin-RevId: 206389641
Diffstat (limited to 'tensorflow/core/common_runtime/mkl_cpu_allocator.h')
-rw-r--r-- | tensorflow/core/common_runtime/mkl_cpu_allocator.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/mkl_cpu_allocator.h b/tensorflow/core/common_runtime/mkl_cpu_allocator.h index 29f702699f..94e10dbfa2 100644 --- a/tensorflow/core/common_runtime/mkl_cpu_allocator.h +++ b/tensorflow/core/common_runtime/mkl_cpu_allocator.h @@ -22,7 +22,6 @@ limitations under the License. #ifdef INTEL_MKL #include <cstdlib> -#include <string> #include "tensorflow/core/common_runtime/bfc_allocator.h" #include "tensorflow/core/common_runtime/visitable_allocator.h" #include "tensorflow/core/lib/strings/numbers.h" |