MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / offset_elem

Method offset_elem

src/core/include/megbrain/tensor.h:49–49  ·  view source on GitHub ↗

get offset in number of logical elements in the layout

Source from the content-addressed store, hash-verified

47
48 //! get offset in number of logical elements in the layout
49 ptrdiff_t offset_elem() const { return m_offset_elem; }
50
51 //! get offset measured in bytes
52 ptrdiff_t offset_byte() const {

Callers 4

TESTFunction · 0.80
do_make_sub_specMethod · 0.80
on_val_producedMethod · 0.80
buf_subMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64