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

Method empty

imperative/src/impl/physical_tensor.cpp:701–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701bool Tensor::empty() {
702 return !m_blob->size();
703}
704
705DnnTensorND Tensor::dnn_tensor() {
706 mgb_assert(m_blob, "uninitialized tensor.");

Callers 15

InputPlaceholderFunction · 0.45
makeFunction · 0.45
get_static_infer_valueFunction · 0.45
do_inferMethod · 0.45
connectMethod · 0.45
ProfilerPluginMethod · 0.45
init_seqMethod · 0.45
device_waitMethod · 0.45
TensorMethod · 0.45
fetch_valueMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected