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

Function is_valid_op

src/tf/tf_parser.cpp:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static bool is_valid_op(const tensorflow::NodeDef& node)
235{
236 std::vector<std::string> ignored{"NoOp", "Assert"};
237 return none_of(ignored, [&](const auto& op) {
238 const auto& name = get_name(node);
239 return node.op() == op or contains(name, op);
240 });
241}
242
243std::vector<std::string> tf_parser::find_outputs() const
244{

Callers 3

applyMethod · 0.85
find_outputsMethod · 0.85
parse_nodeMethod · 0.85

Calls 4

get_nameFunction · 0.85
containsFunction · 0.85
none_ofFunction · 0.50
opMethod · 0.45

Tested by

no test coverage detected