| 49 | } |
| 50 | |
| 51 | std::string OpEdge::VisualStr() const { |
| 52 | std::string str; |
| 53 | int32_t idx = 0; |
| 54 | for (const LogicalBlobId& lbi : *lbis_) { |
| 55 | if (idx++ > 0) { str += "\\n"; } |
| 56 | str += lbi.blob_name() + ":"; |
| 57 | str += src_node()->LogicalBlobDesc4Lbi(lbi).shape().ToString(); |
| 58 | } |
| 59 | return str; |
| 60 | } |
| 61 | |
| 62 | const SbpParallel& OpNode::SbpParallel4BnInOp(const std::string& bn_in_op) const { |
| 63 | return *CHECK_JUST(op().SbpParallel4BnInOp(bn_in_op)); |
nothing calls this directly
no test coverage detected