aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/core
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-12-12 18:44:25 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-12-12 18:48:24 -0800
commit192bcb86d9e988d4f3b12bd2677e3638a9a0cae3 (patch)
tree6abb1f2505a134b53d33e9230ef7de1193c2f01e /tensorflow/core/lib/core
parent24fda91f22e3df55187199c99b3e4a6bf5c0d1a1 (diff)
Fully-qualify function call in TF_CHECK_OK macro implementation, so that it can
be safely used outside of the tensorflow namespace. Note that the StreamExecutor SE_CHECK_OK simply uses TF_CHECK_OK, so this helps those cases. PiperOrigin-RevId: 178847904
Diffstat (limited to 'tensorflow/core/lib/core')
-rw-r--r--tensorflow/core/lib/core/status.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/lib/core/status.h b/tensorflow/core/lib/core/status.h
index 3b8a322854..58a50a70c2 100644
--- a/tensorflow/core/lib/core/status.h
+++ b/tensorflow/core/lib/core/status.h
@@ -127,9 +127,9 @@ inline tensorflow::string* TfCheckOpHelper(::tensorflow::Status v,
return TfCheckOpHelperOutOfLine(v, msg);
}
-#define TF_DO_CHECK_OK(val, level) \
- while (auto _result = TfCheckOpHelper(val, #val)) \
- LOG(level) << *(_result)
+#define TF_DO_CHECK_OK(val, level) \
+ while (auto _result = ::tensorflow::TfCheckOpHelper(val, #val)) \
+ LOG(level) << *(_result)
#define TF_CHECK_OK(val) TF_DO_CHECK_OK(val, FATAL)
#define TF_QCHECK_OK(val) TF_DO_CHECK_OK(val, QFATAL)