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

Method ToString

oneflow/core/common/shape.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66template<class T>
67std::string ConstShapeMixIn<T>::ToString() const {
68 std::stringstream ss;
69 int32_t idx = 0;
70 ss << "(";
71 for (int64_t dim : *tp()) {
72 ss << dim;
73 if (++idx != tp()->size() || tp()->size() == 1) { ss << ","; }
74 }
75 ss << ")";
76 return ss.str();
77}
78
79template<class T>
80std::string ConstShapeMixIn<T>::DebugStr() const {

Callers 15

GenNcclFusionKeyFunction · 0.45
ApplyMethod · 0.45
ApplyMethod · 0.45
ApplyMethod · 0.45
RawPlacementToStringFunction · 0.45
PlanMemoryLogMethod · 0.45
GenLightPlanMethod · 0.45
InferOutBlobDescsMethod · 0.45
InferOutBlobDescsIfMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected