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

Method is_contiguous

src/custom/impl/tensor.cpp:489–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489bool Tensor::is_contiguous() const {
490 return TensorImplRef(m_tensor).layout().is_contiguous();
491}
492
493bool Tensor::is_empty() const {
494 return TensorImplRef(m_tensor).layout().is_empty();

Callers 15

pyarr2hvalFunction · 0.45
np2tensor_try_borrowFunction · 0.45
ndarray_from_tensorFunction · 0.45
CreateTensorMethod · 0.45
to_contiguous_inplaceMethod · 0.45
applyFunction · 0.45
apply_on_physical_tensorFunction · 0.45

Calls 1

layoutMethod · 0.45

Tested by 8

apply_on_physical_tensorFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
argsort_data_genFunction · 0.36
run_trans_inp_test_caseFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36