| 64 | |
| 65 | template <typename T> |
| 66 | void InferFromGraph(FrameView* frame_view, GraphDef* graph, bool valid) { |
| 67 | Status status; |
| 68 | T graph_view(graph, &status); |
| 69 | TF_ASSERT_OK(status); |
| 70 | status = frame_view->InferFromGraphView(graph_view); |
| 71 | if (valid) { |
| 72 | TF_ASSERT_OK(status); |
| 73 | } else { |
| 74 | ASSERT_FALSE(status.ok()); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | template <> |
| 79 | void InferFromGraph<GraphDef>(FrameView* frame_view, GraphDef* graph, |
nothing calls this directly
no test coverage detected