Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
489
bool Tensor::is_contiguous() const {
490
return TensorImplRef(m_tensor).layout().is_contiguous();
491
}
492
493
bool Tensor::is_empty() const {
494
return TensorImplRef(m_tensor).layout().is_empty();
Callers
15
pyarr2hval
Function · 0.45
lowbit_ndarray_to_host_tensor
Function · 0.45
np2tensor_try_borrow
Function · 0.45
ndarray_from_tensor
Function · 0.45
CreateTensor
Method · 0.45
to_contiguous_inplace
Method · 0.45
apply
Function · 0.45
get_input_layout_constraint
Function · 0.45
infer_output_attrs_fallible
Function · 0.45
apply_on_physical_tensor
Function · 0.45
get_input_layout_constraint
Function · 0.45
get_input_layout_constraint
Function · 0.45
Calls
1
layout
Method · 0.45
Tested by
8
apply_on_physical_tensor
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
argsort_data_gen
Function · 0.36
run_trans_inp_test_case
Function · 0.36
run_bgemm_trans_inp_test_case
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36