MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExpectError

Method ExpectError

tensorflow/c/while_loop_test.cc:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void ExpectError(TF_Code expected_code, const string& expected_msg) {
67 TF_FinishWhile(params_.get(), s_, &outputs_[0]);
68 EXPECT_EQ(expected_code, TF_GetCode(s_));
69 EXPECT_EQ(expected_msg, TF_Message(s_));
70 // TODO(skyewm): this assert is currently broken. Fix or remove guarantee.
71 // ASSERT_EQ(original_graph_description_, GraphDebugString()) <<
72 // "TF_FinishWhile() altered graph on error";
73 }
74
75 void Run(std::initializer_list<int> input_values) {
76 Run(outputs_, input_values);

Callers

nothing calls this directly

Calls 4

TF_FinishWhileFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected