Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
493
bool Tensor::is_empty() const {
494
return TensorImplRef(m_tensor).layout().is_empty();
495
}
496
497
void* Tensor::data(void) const {
498
return static_cast<void*>(TensorImplRef(m_tensor).raw_ptr());
Callers
15
pyarr2hval
Function · 0.45
ndarray_from_tensor
Function · 0.45
CreateTensor
Method · 0.45
to_contiguous_inplace
Method · 0.45
apply_on_physical_tensor
Function · 0.45
apply_on_physical_tensor
Function · 0.45
apply_on_physical_tensor
Function · 0.45
infer_output_attrs_fallible
Function · 0.45
apply_on_physical_tensor
Function · 0.45
apply_on_physical_tensor
Function · 0.45
apply_on_physical_tensor
Function · 0.45
apply_on_physical_tensor
Function · 0.45
Calls
1
layout
Method · 0.45
Tested by
11
try_find_any_weight_preprocess_algo
Function · 0.36
try_find_any_bias_preprocess_algo
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
run_multi_axis_vec_empty_shape
Function · 0.36
run_modify_multi_axis_vec_empty_shape
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36