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

Method nbytes

oneflow/core/common/tensor_buffer.h:89–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 DataType data_type() const;
88 int64_t elem_cnt() const { return shape().elem_cnt(); }
89 size_t nbytes() const { return elem_cnt() * GetSizeOfDataType(data_type()); }
90
91 void Reset(const Shape& shape, DataType dtype);
92 void Reset(const Shape& shape);

Callers 9

ParseMethod · 0.80
AtMethod · 0.80
DecodeImageFromOFRecordFunction · 0.80
ImageRandomCropImplFunction · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80

Calls 1

GetSizeOfDataTypeFunction · 0.85

Tested by

no test coverage detected