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

Method OneElemSize

oneflow/core/kernel/boxing_kernel.cpp:95–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 size_t OneElemSize() const { return GetSizeOfDataType(BnInOp2Blob_(bns_->Get(0))->data_type()); }
96
97 int64_t TotalElemNum() const { return seg_num_ * elem_sum_.back(); }
98

Callers 2

ConcatSplitDataContentFunction · 0.80

Calls 3

GetSizeOfDataTypeFunction · 0.85
data_typeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected