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

Method elem_cnt

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

Source from the content-addressed store, hash-verified

47bool Shape::operator!=(const Shape& rhs) const { return !(*this == rhs); }
48
49int64_t Shape::elem_cnt() const { return shape_->elem_cnt(); }
50
51int64_t Shape::At(int64_t index) const { return shape_->At(index); }
52

Callers 5

tensor_utils.cppFile · 0.45
MakeGlobalTensorFromDataFunction · 0.45
IsScalarTensorFunction · 0.45
fromDLPackFunction · 0.45
LoadCheckpointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected