Tests compilation and execution of an empty graph.
| 178 | |
| 179 | // Tests compilation and execution of an empty graph. |
| 180 | TEST_F(XlaCompilerTest, EmptyReturnValues) { |
| 181 | XlaCompiler compiler(DefaultOptions()); |
| 182 | |
| 183 | std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); |
| 184 | XlaCompiler::CompilationResult result; |
| 185 | TF_ASSERT_OK(compiler.CompileGraph( |
| 186 | XlaCompiler::CompileOptions(), "add", std::move(graph), |
| 187 | /*args=*/{}, /*user_aliases=*/{}, &result)); |
| 188 | |
| 189 | TF_ASSERT_OK(client_->Execute(*result.computation, {}).status()); |
| 190 | } |
| 191 | |
| 192 | // Tests compilation and execution of a graph that adds two tensors. |
| 193 | TEST_F(XlaCompilerTest, Simple) { |
nothing calls this directly
no test coverage detected