MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / VisualStr

Method VisualStr

oneflow/core/graph/op_graph.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::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
62const SbpParallel& OpNode::SbpParallel4BnInOp(const std::string& bn_in_op) const {
63 return *CHECK_JUST(op().SbpParallel4BnInOp(bn_in_op));

Callers

nothing calls this directly

Calls 8

DeviceTag4DeviceTypeFunction · 0.85
to_stringFunction · 0.85
GetOpTimeShapeMethod · 0.80
ToStringMethod · 0.45
shapeMethod · 0.45
device_typeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected