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

Method empty

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

whether underlying storage is empty

Source from the content-addressed store, hash-verified

364
365 //! whether underlying storage is empty
366 bool empty() const { return m_storage.empty(); }
367
368 //! whether tensor shape is valid (i.e. ndim != 0)
369 bool shape_valid() const { return m_layout.ndim; }

Callers 15

dumpMethod · 0.45
dump_tensorMethod · 0.45
loadMethod · 0.45
owner_graphMethod · 0.45
makeMethod · 0.45
make_from_desc_sharedMethod · 0.45
dumpMethod · 0.45
dump_tensorMethod · 0.45
loadMethod · 0.45
addMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by 15

runMethod · 0.36
TESTFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36
test_hash_mapFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
run_eager_reeval_testMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36