diff options
Diffstat (limited to 'tensorflow/core/common_runtime/mkl_cpu_allocator.cc')
-rw-r--r-- | tensorflow/core/common_runtime/mkl_cpu_allocator.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/core/common_runtime/mkl_cpu_allocator.cc b/tensorflow/core/common_runtime/mkl_cpu_allocator.cc index 43a909466e..4ec85457ad 100644 --- a/tensorflow/core/common_runtime/mkl_cpu_allocator.cc +++ b/tensorflow/core/common_runtime/mkl_cpu_allocator.cc @@ -17,6 +17,13 @@ limitations under the License. #include "tensorflow/core/common_runtime/mkl_cpu_allocator.h" +#ifdef _WIN32 +// Declare function to avoid unresolved symbol in VS +i_malloc_t i_malloc; +i_calloc_t i_calloc; +i_realloc_t i_realloc; +i_free_t i_free; +#endif namespace tensorflow { constexpr const char* MklCPUAllocator::kMaxLimitStr; |