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

Method is_empty

src/custom/impl/tensor.cpp:493–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493bool Tensor::is_empty() const {
494 return TensorImplRef(m_tensor).layout().is_empty();
495}
496
497void* Tensor::data(void) const {
498 return static_cast<void*>(TensorImplRef(m_tensor).raw_ptr());

Callers 15

pyarr2hvalFunction · 0.45
ndarray_from_tensorFunction · 0.45
CreateTensorMethod · 0.45
to_contiguous_inplaceMethod · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45

Calls 1

layoutMethod · 0.45

Tested by 11

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36