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

Function ToShape

oneflow/core/functional/impl/global_cast.cpp:111–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 return Maybe<void>::Ok();
110 }
111 Maybe<void> ToShape(Shape* shape) const { return this->shape().ToShape(shape); }
112 Maybe<Shape> ToShape() const { return shape().ToShape(); }
113 int64_t At(int i) const { return shape().At(i); }
114 int64_t NumAxes() const { return shape().NumAxes(); }

Callers 2

CheckMethod · 0.85
ToShapeMethod · 0.85

Calls 3

shapeClass · 0.85
ToShapeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected