We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34773c3 commit 559cc0bCopy full SHA for 559cc0b
research/carls/testing/test_helper.cc
@@ -34,7 +34,10 @@ std::string GetErrorMessage(const grpc::Status& status) {
34
return status.error_message();
35
}
36
37
-template <>
+// Starting from TF 2.13, `tensorflow::Status` will be an alias to
38
+// `absl::Status`, thus, we don't define the specialization in that case.
39
+template <class T,
40
+ std::enable_if_t<!std::is_same<T, absl::Status>::value, bool> = true>
41
std::string GetErrorMessage(const tensorflow::Status& status) {
42
// On April 2023, there is not yet an official release of Tensorflow which
43
// includes `message().` One will need to wait for the release following 2.12.0.
0 commit comments