| 36 | } |
| 37 | |
| 38 | void CreateLoop(const ops::CondGraphBuilderFn& cond, |
| 39 | const ops::BodyGraphBuilderFn& body, |
| 40 | error::Code error_code = error::OK, |
| 41 | const string& error_msg = "") { |
| 42 | Status s = |
| 43 | ops::BuildWhileLoop(scope_, inputs_, cond, body, kFrameName, &outputs_); |
| 44 | EXPECT_EQ(s.code(), error_code); |
| 45 | EXPECT_EQ(s.error_message(), error_msg); |
| 46 | } |
| 47 | |
| 48 | template <typename T> |
| 49 | void Run(const std::vector<Input::Initializer>& input_values, |
nothing calls this directly
no test coverage detected