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

Method shape_valid

imperative/src/impl/interpreter/tensor_info.h:163–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 size_t cand_index = UINT_MAX;
162
163 bool shape_valid() {
164 MGB_LOCK_GUARD(lock);
165 return desc.layout.ndim;
166 }
167
168 void update_layout(const TensorLayout& layout) {
169 MGB_LOCK_GUARD(lock);

Callers 5

dispatch_default_cpuMethod · 0.45
apply_opMethod · 0.45
get_shapeMethod · 0.45
has_valueMethod · 0.45
valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected