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

Method NumAxes

oneflow/api/cpp/framework/shape.cpp:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53void Shape::Set(int64_t index, int64_t val) { shape_->Set(index, val); }
54
55int64_t Shape::NumAxes() const { return shape_->NumAxes(); }
56
57int64_t Shape::Count(int64_t begin_axis, int64_t end_axis) const {
58 return shape_->Count(begin_axis, end_axis);

Callers 4

PyTensorObject_sizeFunction · 0.45
TensorSize_NewFromShapeFunction · 0.45
ParseArrayToTensorFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36