| 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 |
nothing calls this directly
no test coverage detected