| 184 | } |
| 185 | |
| 186 | static tf_parser::attribute_map get_attributes(const tensorflow::NodeDef& node) |
| 187 | { |
| 188 | tf_parser::attribute_map result; |
| 189 | for(auto&& attr : node.attr()) |
| 190 | { |
| 191 | result[attr.first] = attr.second; |
| 192 | } |
| 193 | |
| 194 | return result; |
| 195 | } |
| 196 | |
| 197 | static std::vector<size_t> parse_dims(const tensorflow::TensorShapeProto& s) |
| 198 | { |
no outgoing calls
no test coverage detected