MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / parse_tf_from

Function parse_tf_from

src/tf/tf.cpp:41–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <class... Ts>
41static program parse_tf_from(const tf_options& options, Ts&&... xs)
42{
43 tf::tf_parser parser;
44 parser.is_nhwc = options.is_nhwc;
45 parser.batch_size = options.batch_size;
46 parser.map_input_dims = options.map_input_dims;
47 parser.output_node_names = options.output_node_names;
48
49#ifndef NDEBUG
50 // Log the program when it can't be parsed
51 try
52 {
53 parser.parse_from(std::forward<Ts>(xs)...);
54 }
55 catch(...)
56 {
57 std::cerr << parser.prog << std::endl;
58 throw;
59 }
60#else
61 parser.parse_from(std::forward<Ts>(xs)...);
62#endif
63 return std::move(parser.prog);
64}
65
66program parse_tf(const std::string& name, const tf_options& options)
67{

Callers 2

parse_tfFunction · 0.85
parse_tf_bufferFunction · 0.85

Calls 1

parse_fromMethod · 0.45

Tested by

no test coverage detected