| 21 | #include "tensorflow/core/platform/test.h" |
| 22 | |
| 23 | TEST(CApiDebug, ScalarCPU) { |
| 24 | TFE_TensorHandle* h = TestScalarTensorHandle(1.0f); |
| 25 | TF_Status* status = TF_NewStatus(); |
| 26 | TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status); |
| 27 | CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); |
| 28 | |
| 29 | ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info)); |
| 30 | |
| 31 | TFE_DeleteTensorDebugInfo(debug_info); |
| 32 | TFE_DeleteTensorHandle(h); |
| 33 | TF_DeleteStatus(status); |
| 34 | } |
| 35 | |
| 36 | TEST(CApiDebug, 2DCPU) { |
| 37 | TFE_TensorHandle* h = TestMatrixTensorHandle3X2(); |
no test coverage detected