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

Method ToShape

oneflow/core/common/flat_shape.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57Maybe<Shape> FlatShape::ToShape() const {
58 const auto& shape = std::make_shared<Shape>();
59 JUST(ToShape(shape.get()));
60 return shape;
61}
62
63Maybe<void> FlatShape::ToShape(Shape* shape) const {
64 DimVector dim_vec;

Callers 8

UpdateCacheKeyMethod · 0.45
FOR_RANGEFunction · 0.45
CheckMethod · 0.45
operator()Method · 0.45
ToShapeFunction · 0.45

Calls 5

ToShapeFunction · 0.85
dimMethod · 0.80
ShapeClass · 0.70
getMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected