| 267 | } |
| 268 | |
| 269 | OpInfo BuildOpInfoWithoutDevice( |
| 270 | const NodeDef& node, |
| 271 | const std::unordered_map<string, const NodeDef*>& name_to_node, |
| 272 | const std::vector<OpInfo::TensorProperties>& inputs) { |
| 273 | OpInfo op_info; |
| 274 | op_info.set_op(node.op()); |
| 275 | *op_info.mutable_attr() = node.attr(); |
| 276 | for (auto& input : inputs) { |
| 277 | *op_info.add_inputs() = input; |
| 278 | } |
| 279 | ExtractExtraProperties(node, name_to_node, &op_info); |
| 280 | return op_info; |
| 281 | } |
| 282 | |
| 283 | string GetOpDescription(const OpInfo& op_info) { |
| 284 | string description = "["; |