":stream_executor",
"//tensorflow/core:lib",
"//tensorflow/core/kernels:ops_util",
- "@com_google_absl//absl/strings",
"@local_config_cuda//cuda:cuda_headers",
] + if_cuda_is_configured([
"//tensorflow/core:cuda",
#include <functional>
#include <memory>
-#include "absl/strings/str_cat.h"
#include "third_party/eigen3/Eigen/Core"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/util/env_var.h"
case PATCH_LEVEL:
return "PATCH_LEVEL";
default:
- return absl::StrCat(
+ return port::StrCat(
"<unknown libraryPropertyType: ", static_cast<int>(type), ">");
}
}
cudnnStatus_t status = cudnnGetProperty(type, value);
if (status != CUDNN_STATUS_SUCCESS) {
const string error =
- absl::StrCat("cudnnGetProperty failed for type: ", ToString(type),
+ port::StrCat("cudnnGetProperty failed for type: ", ToString(type),
" with status: ", ToString(status));
LOG(ERROR) << error;
return port::Status{port::error::INTERNAL, error};
CudnnVersion loaded_version;
TF_RETURN_IF_ERROR(GetLoadedCudnnVersion(&loaded_version));
if (!IsSourceCompatibleWithCudnnLibrary(source_version, loaded_version)) {
- const tensorflow::string error = absl::StrCat(
+ const tensorflow::string error = port::StrCat(
"Loaded runtime CuDNN library: ", loaded_version.ToString(),
" but source was compiled with: ", source_version.ToString(),
". CuDNN library major and minor version needs to match or have "
#include <string>
-#include "absl/strings/str_join.h"
+#include "tensorflow/core/lib/strings/strcat.h"
namespace perftools {
namespace gputools {
CudnnVersion(int major, int minor, int patch)
: major_version(major), minor_version(minor), patch_level(patch) {}
- std::string ToString() const {
- return absl::StrJoin({major_version, minor_version, patch_level}, ".");
+ tensorflow::string ToString() const {
+ return tensorflow::strings::StrCat(major_version, ".", minor_version, ".",
+ patch_level);
}
int major_version;