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

Method size

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

! * \brief usable size in bytes until end of allocated block */

Source from the content-addressed store, hash-verified

160 * \brief usable size in bytes until end of allocated block
161 */
162 size_t size() const { return m_size; }
163
164 /*!
165 * \brief offset on allocated block in bytes

Callers 15

copy_fromMethod · 0.95
run_comp_seq_rec_basicFunction · 0.45
~DummyAllocatorMethod · 0.45
TESTFunction · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
bad_opr_shallow_copyFunction · 0.45
TESTFunction · 0.45
memory_swap.cppFile · 0.45

Calls

no outgoing calls

Tested by 15

run_comp_seq_rec_basicFunction · 0.36
~DummyAllocatorMethod · 0.36
TESTFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
bad_opr_shallow_copyFunction · 0.36
TESTFunction · 0.36
test_hash_mapFunction · 0.36
runMethod · 0.36
TESTFunction · 0.36