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

Method flatten

src/core/impl/graph/symbol_var.cpp:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37SymbolVar SymbolVar::flatten() const {
38 return opr::Reshape::make(*this, make_scalar(1), 0);
39}
40
41SymbolVar SymbolVar::add_axis(size_t idx) const {
42 return opr::AxisAddRemove::make(

Callers 15

forwardMethod · 0.45
TestShuffleNetCudaClass · 0.45
check_correctMethod · 0.45
start_callbackMethod · 0.45
finish_callbackMethod · 0.45
TestShuffleNetClass · 0.45
check_correctMethod · 0.45
start_callbackMethod · 0.45
finish_callbackMethod · 0.45
check_correctMethod · 0.45
TestShuffleNetClass · 0.45
check_correctMethod · 0.45

Calls 1

makeFunction · 0.70

Tested by 15

check_correctMethod · 0.36
start_callbackMethod · 0.36
finish_callbackMethod · 0.36
check_correctMethod · 0.36
start_callbackMethod · 0.36
finish_callbackMethod · 0.36
check_correctMethod · 0.36
check_correctMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36