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

Method parse

src/tf/parse_constant.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 std::vector<op_desc> operators() const { return {{"Const"}}; }
37
38 instruction_ref parse(const op_desc& /*opd*/,
39 const tf_parser& parser,
40 tf_parser::node_info info,
41 const std::vector<instruction_ref>& /*args*/) const
42 {
43 literal v = parser.parse_tensor(info.attributes.at("value").tensor());
44 return info.add_literal(v);
45 }
46};
47
48} // namespace tf

Callers

nothing calls this directly

Calls 3

atMethod · 0.80
parse_tensorMethod · 0.45
add_literalMethod · 0.45

Tested by

no test coverage detected