| 382 | } |
| 383 | |
| 384 | void tf_parser::parse_from(std::istream& is) |
| 385 | { |
| 386 | tensorflow::GraphDef graph; |
| 387 | if(graph.ParseFromIstream(&is)) |
| 388 | { |
| 389 | this->parse_graph(graph); |
| 390 | } |
| 391 | else |
| 392 | { |
| 393 | throw std::runtime_error("Failed reading tf file"); |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | void tf_parser::parse_from(const void* data, std::size_t size) |
| 398 | { |
no test coverage detected