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

Function reshape_anybatch

src/opr/impl/blas.cpp:602–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600
601template <typename T>
602T reshape_anybatch(T x, SymbolVar tshp) {
603 if (!x.node())
604 return x;
605 return opr::Reshape::make(unsafe(x), tshp, 0);
606}
607
608template <typename T>
609T trans(T x) {

Callers 1

MGB_IMPL_OPR_GRADFunction · 0.85

Calls 3

unsafeFunction · 0.85
makeFunction · 0.50
nodeMethod · 0.45

Tested by

no test coverage detected