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

Function broadcast_ensure

src/gopt/impl/basic_arith/inplace.cpp:51–53  ·  view source on GitHub ↗

broadcast to ensure returned value shape is compatible with inp

Source from the content-addressed store, hash-verified

49
50//! broadcast to ensure returned value shape is compatible with inp
51static inline SymbolVar broadcast_ensure(SymbolVar value, SymbolVar inp) {
52 return broadcast_tshp(value, {value, inp});
53}
54
55// a - a => 0, a / a => 1
56template <int unit>

Callers 1

REGFunction · 0.85

Calls 1

broadcast_tshpFunction · 0.85

Tested by

no test coverage detected