Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
601
template <typename T>
602
T reshape_anybatch(T x, SymbolVar tshp) {
603
if (!x.node())
604
return x;
605
return opr::Reshape::make(unsafe(x), tshp, 0);
606
}
607
608
template <typename T>
609
T trans(T x) {
Callers
1
MGB_IMPL_OPR_GRAD
Function · 0.85
Calls
3
unsafe
Function · 0.85
make
Function · 0.50
node
Method · 0.45
Tested by
no test coverage detected