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

Method shape

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

shape at given dimension, with boundary check

Source from the content-addressed store, hash-verified

374
375 //! shape at given dimension, with boundary check
376 size_t shape(size_t dim) const {
377 mgb_assert(dim < m_layout.ndim);
378 return m_layout.shape[dim];
379 }
380
381 //! get ptr at given index
382 template <typename T, typename Iter>

Callers 15

TESTFunction · 0.45
run_comp_seq_rec_basicFunction · 0.45
run_level2Function · 0.45
run<level2_exec_check>Function · 0.45
run<cb_non_contig>Function · 0.45
run<multi_recorder_run>Function · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

TESTFunction · 0.36
run_comp_seq_rec_basicFunction · 0.36
run_level2Function · 0.36
run<level2_exec_check>Function · 0.36
run<cb_non_contig>Function · 0.36
run<multi_recorder_run>Function · 0.36
TESTFunction · 0.36
TESTFunction · 0.36