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

Method shape_valid

src/core/include/megbrain/tensor.h:369–369  ·  view source on GitHub ↗

whether tensor shape is valid (i.e. ndim != 0)

Source from the content-addressed store, hash-verified

367
368 //! whether tensor shape is valid (i.e. ndim != 0)
369 bool shape_valid() const { return m_layout.ndim; }
370
371 const TensorShape& shape() const { return m_layout; }
372

Callers 6

executeMethod · 0.45
initializedMethod · 0.45
setupMethod · 0.45
io.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected